OAuthGrantCustomExtensionContext Class

Provides permission on the custom extension context elements.

Inheritance Hierarchy

System.Object
  Microsoft.Owin.Security.Provider.BaseContext<OAuthAuthorizationServerOptions>
    Microsoft.Owin.Security.OAuth.BaseValidatingContext<OAuthAuthorizationServerOptions>
      Microsoft.Owin.Security.OAuth.BaseValidatingTicketContext<OAuthAuthorizationServerOptions>
        Microsoft.Owin.Security.OAuth.OAuthGrantCustomExtensionContext

Namespace:  Microsoft.Owin.Security.OAuth
Assembly:  Microsoft.Owin.Security.OAuth (in Microsoft.Owin.Security.OAuth.dll)

Syntax

'Declaration
Public Class OAuthGrantCustomExtensionContext _
    Inherits BaseValidatingTicketContext(Of OAuthAuthorizationServerOptions)
'Usage
Dim instance As OAuthGrantCustomExtensionContext
public class OAuthGrantCustomExtensionContext : BaseValidatingTicketContext<OAuthAuthorizationServerOptions>
public ref class OAuthGrantCustomExtensionContext : public BaseValidatingTicketContext<OAuthAuthorizationServerOptions^>
type OAuthGrantCustomExtensionContext =  
    class 
        inherit BaseValidatingTicketContext<OAuthAuthorizationServerOptions>
    end
public class OAuthGrantCustomExtensionContext extends BaseValidatingTicketContext<OAuthAuthorizationServerOptions>

The OAuthGrantCustomExtensionContext type exposes the following members.

Constructors

  Name Description
Public method OAuthGrantCustomExtensionContext Initializes a new instance of the OAuthGrantCustomExtensionContext class.

Top

Properties

  Name Description
Public property ClientId Gets a string that identifies the authentication.
Public property Error Gets the validation error. (Inherited from BaseValidatingContext<TOptions>.)
Public property ErrorDescription Gets the description of the error. (Inherited from BaseValidatingContext<TOptions>.)
Public property ErrorUri Gets the Uri error. (Inherited from BaseValidatingContext<TOptions>.)
Public property GrantType Grants permission on a type.
Public property HasError Gets a value that indicates whether the authentication has an error. (Inherited from BaseValidatingContext<TOptions>.)
Public property IsValidated Gets a value that indicates whether the context is validated. (Inherited from BaseValidatingContext<TOptions>.)
Public property Options (Inherited from BaseContext<TOptions>.)
Public property OwinContext (Inherited from BaseContext<TOptions>.)
Public property Parameters Gets the parameters for the IReadableStringCollection.
Public property Request (Inherited from BaseContext<TOptions>.)
Public property Response (Inherited from BaseContext<TOptions>.)
Public property Ticket Contains the identity and properties for the application to authenticate. If the Validated method is invoked with an AuthenticationTicket or ClaimsIdentity argument, that new value is assigned to this property in addition to changing IsValidated to true. (Inherited from BaseValidatingTicketContext<TOptions>.)

Top

Methods

  Name Description
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method Rejected Shows the rejected context after validation. (Inherited from BaseValidatingContext<TOptions>.)
Public method SetError(String) Sets error after validation. (Inherited from BaseValidatingContext<TOptions>.)
Public method SetError(String, String) Sets error after validation. (Inherited from BaseValidatingContext<TOptions>.)
Public method SetError(String, String, String) Sets error after validation. (Inherited from BaseValidatingContext<TOptions>.)
Public method ToString (Inherited from Object.)
Public method Validated() Occurs when the context is finished validating. (Inherited from BaseValidatingContext<TOptions>.)
Public method Validated(ClaimsIdentity) Alters the ticket information on this context and marks it as as validated by the application. IsValidated becomes true and HasError becomes false as a result of calling. (Inherited from BaseValidatingTicketContext<TOptions>.)
Public method Validated(AuthenticationTicket) Replaces the ticket information on this context and marks it as as validated by the application. IsValidated becomes true and HasError becomes false as a result of calling. (Inherited from BaseValidatingTicketContext<TOptions>.)

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.Owin.Security.OAuth Namespace