Click or drag to resize

OAuthServiceBehavior Class

OAuth2 Access Control Service
Inheritance Hierarchy
SystemObject
  SanteDB.Rest.OAuth.RestOAuthServiceBehavior
    SanteDB.Client.OAuthClientOAuthServiceBehavior

Namespace: SanteDB.Rest.OAuth.Rest
Assembly: SanteDB.Rest.OAuth (in SanteDB.Rest.OAuth.dll) Version: 3.0.2081-alpha+19f573cdc8c56fbc278c5e41a734f011a9baa699
Syntax
public class OAuthServiceBehavior : IOAuthServiceContract

The OAuthServiceBehavior type exposes the following members.

Constructors
 NameDescription
Public methodOAuthServiceBehavior Policy enforcement service
Top
Methods
 NameDescription
Protected methodAddTokenDescriptorToContext Create a descriptor that can be serialized into a JWT or other token format.
Protected methodAddTokensToContext Creates the proper tokens in the context based on the server configuration.
Public methodAuthorize HTTP GET Authorization Endpoint.
Public methodAuthorize_Post HTTP POST Authorization endpoint.
Protected methodBeforeSendTokenResponse Optional override method that is executed just before a token response is sent. Allows a derived class to override the response.
Public methodContent Render the specified login asset.
Protected methodCreateSessionResponse 
Protected methodCreateTokenResponse Create a token response.
Public methodDiscovery Gets the discovery object
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodEstablishClientSession Establishes a session for a daemon application and optional device identity. No user is associated with the session.
Protected methodEstablishUserSession Create a token response
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Protected methodGetNameClaimType Retrieves the claim type that is used for name validation in the TokenValidationParameters.
Protected methodGetSessionFromIdToken Alternate resolution method for TokenAuthorizationAccessBehavior when the token type is not bearer.
Protected methodGetTokenValidationParameters Gets a TokenValidationParameters object to validate tokens issued by this service.
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodIsGrantTypePermitted Checks if the grant type that was provided is allowed by this service. The default implementation checks for a TokenRequestHandler for the grant type.
Public methodJsonWebKeySet Gets the keys associated with this service.
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Protected methodOnAfterSignOut Invoked after the signout operation is executed. AbandonedSessions contains the sessions that were abandoned.
Protected methodOnBeforeSignOut Invoked before the signout operation is executed.
Public methodPing Perform a ping
Public methodSession Get the specified session information
Public methodSignout The GET version of Signout(NameValueCollection)
Public methodSignout(NameValueCollection) Process a signout request flow.
Public methodToken OAuth token request
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Protected methodTryGetApplicationIdentity Try to resolve an application identity from a token request context.
Protected methodTryGetDeviceIdentity Try to resolve a device identity from a token request context.
Protected methodTryGetRemoteIp 
Public methodUserInfo Get the specified session information
Top
Fields
 NameDescription
Protected field_AppletManager Applet manager for use in contexts where multiple solutions are not supported (like the dCDR)
Protected field_AppletSolutionManager Applet solution manager.
Protected field_SymmetricProvider Symmetric encryption provider.
Protected field_TokenRequestHandlers A list of grant type names and corresponding ITokenRequestHandler to process the request.
Protected fieldm_AppIdentityProvider Application identity provider.
Protected fieldm_configuration Configuration for OAuth provider.
Protected fieldm_DeviceIdentityProvider Device identity provider.
Protected fieldm_JwtHandler JWT Handler to create JWTs with.
Protected fieldm_LocalizationService Localization service.
Protected fieldm_masterConfig Master secuirity configuration.
Protected fieldm_policyEnforcementService Policy Enforcement Service.
Protected fieldm_SessionIdentityProvider Session Identity Provider that can authenticate and return a principal for a given session.
Protected fieldm_SessionProvider Session Provider
Protected fieldm_SessionResolver Session resolver
Protected fieldm_traceSource Trace Source
Top
Extension Methods
 NameDescription
Public Extension MethodConvertTReturn The purpose of this method is to convert object me to TReturn. Why? Because if you have an instance of Act that actually needs to be a SubstanceAdministration we can't just cast so we have to copy.
(Defined by ExtensionMethods)
Public Extension MethodWithControl With control parameter is used as a wrapper for _ parameters
(Defined by QueryFilterExtensions)
Top
Remarks
An Access Control Service and Token Service implemented using OAUTH 2.0
See Also