Table of Contents

Class DefaultScopeParser.ParseScopeContext

Namespace
Fdyay.IdentityServer.Validation
Assembly
Fdyay.IdentityServer.Core.dll

One value being parsed, and what the parser made of it.

public class DefaultScopeParser.ParseScopeContext
Inheritance
DefaultScopeParser.ParseScopeContext
Inherited Members

Properties

Error

Why the value is refused, when it is.

public string? Error { get; }

Property Value

string

Ignore

Whether the value is dropped from the request without refusing it.

public bool Ignore { get; }

Property Value

bool

ParsedName

The scope it asks for, when the parser named one.

public string? ParsedName { get; }

Property Value

string

ParsedParameter

The parameter it carries, when the parser found one.

public string? ParsedParameter { get; }

Property Value

string

RawValue

The value as the request named it.

public string RawValue { get; }

Property Value

string

Succeeded

Whether the value was neither refused nor dropped.

public bool Succeeded { get; }

Property Value

bool

Methods

SetError(string)

Refuses the value: it becomes an invalid scope.

public void SetError(string error)

Parameters

error string

SetIgnore()

Drops the value from the request, as though it had not been named.

public void SetIgnore()

SetParsedValues(string, string)

The scope the value asks for, and the parameter it carries.

public void SetParsedValues(string parsedName, string parsedParameter)

Parameters

parsedName string
parsedParameter string