Early Preview
This is currently very much a preview. Please feel free to try things out,
but don't be upset if anything is not yet working. Feedback is welcome over on our
GitHub Dicussions page.
class Microsoft.​AspNetCore.​Authentication.​AccessDeniedContext
Assembly: Microsoft.AspNetCore.Authentication
Inheritance: object → BaseContext<​RemoteAuthenticationOptions> → HandleRequestContext<​RemoteAuthenticationOptions> → AccessDeniedContext
Provides access denied failure context information to handler providers.
Properties
AccessDeniedPath
Gets or sets the endpoint path the user agent will be redirected to.
By default, this property is set to <see cref="P:Microsoft.AspNetCore.Authentication.RemoteAuthenticationOptions.AccessDeniedPath" /> .
public
AuthenticationProperties
Properties
Additional state values for the authentication session.
public
string
ReturnUrl
Gets or sets the return URL that will be flowed up to the access denied page.
If <see cref="P:Microsoft.AspNetCore.Authentication.AccessDeniedContext.ReturnUrlParameter" /> is not set, this property is not used.
public
string
ReturnUrlParameter
Gets or sets the parameter name that will be used to flow the return URL.
By default, this property is set to <see cref="P:Microsoft.AspNetCore.Authentication.RemoteAuthenticationOptions.ReturnUrlParameter" /> .
public
HandleRequestResult
Result
public
AuthenticationScheme
Scheme
public
RemoteAuthenticationOptions
Options
HttpContext
Request
Response
Methods
public
void
HandleResponse​()
Inherited from HandleRequestContext<​RemoteAuthenticationOptions>
public
void
SkipHandler​()
Inherited from HandleRequestContext<​RemoteAuthenticationOptions>
public
bool
Equals​(object obj)
Inherited from object
protected
void
Finalize​()
Inherited from object
public
int
GetHashCode​()
Inherited from object
protected
object
MemberwiseClone​()
Inherited from object
public
string
ToString​()
Inherited from object