Class AuthorizationRequest
- Namespace
- Duende.IdentityServer.Models
- Assembly
- Duende.IdentityServer.dll
Represents contextual information about a authorization request.
public class AuthorizationRequest
- Inheritance
-
AuthorizationRequest
- Inherited Members
Constructors
AuthorizationRequest()
Initializes a new instance of the AuthorizationRequest class.
public AuthorizationRequest()
AuthorizationRequest(ValidatedAuthorizeRequest)
Initializes a new instance of the AuthorizationRequest class.
public AuthorizationRequest(ValidatedAuthorizeRequest request)
Parameters
request
ValidatedAuthorizeRequestAuthorized request validated parameters.
Exceptions
- ArgumentNullException
request
is null.
Properties
AcrValues
The acr values passed from the authorization request.
public IEnumerable<string> AcrValues { get; set; }
Property Value
- IEnumerable<string>
The acr values.
Client
The client.
public Client Client { get; set; }
Property Value
- Client
DisplayMode
The display mode passed from the authorization request.
public string? DisplayMode { get; set; }
Property Value
- string
The display mode.
IdP
The external identity provider requested. This is used to bypass home realm
discovery (HRD). This is provided via the "idp:"
prefix to the acr
parameter on the authorize request.
public string? IdP { get; set; }
Property Value
- string
The external identity provider identifier.
LoginHint
The expected username the user will use to login. This is requested from the client
via the login_hint
parameter on the authorize request.
public string? LoginHint { get; set; }
Property Value
- string
The LoginHint.
Parameters
Gets the entire parameter collection.
public NameValueCollection Parameters { get; }
Property Value
- NameValueCollection
The parameters.
PromptModes
Gets or sets the collection of prompt modes.
public IEnumerable<string> PromptModes { get; set; }
Property Value
- IEnumerable<string>
The collection of prompt modes.
RedirectUri
Gets or sets the redirect URI.
public string RedirectUri { get; set; }
Property Value
- string
The redirect URI.
RequestObjectValues
Gets the validated contents of the request object (if present)
public IEnumerable<Claim> RequestObjectValues { get; }
Property Value
- IEnumerable<Claim>
The request object values
Tenant
The tenant requested. This is provided via the "tenant:"
prefix to
the acr
parameter on the authorize request.
public string? Tenant { get; set; }
Property Value
- string
The tenant.
UiLocales
The UI locales passed from the authorization request.
public string? UiLocales { get; set; }
Property Value
- string
The UI locales.
ValidatedResources
The validated resources.
public ResourceValidationResult ValidatedResources { get; set; }