C# 클래스 ServiceStack.Authentication.Aad.AadAuthProvider

Azure Active Directory (AAD) Auth Provider
You must provide the `ClientId` and `ClientSecret`. They can be provided to the constructor, by setting the properties, or in the app.config appsettings under the following keys: `oauth.aad.ClientId` and `oauth.aad.ClientSecret` You may also provide the `TenantId` of your AAD resource. The Tenant ID can be found in the oauth2 endpoint as shown: https://login.microsoftonline.com/{TenantId}/oauth2/token If no Tenant ID is provided the `common` tenant will be used. The `CallbackUrl` will default to the /auth/aad path, but it can be configured explicitly. In either case it must match what has been configured on Azure as a "REPLY URL". The following properties are not used. If any are configured a warning will be logged. This can be disabled with `LogConfigurationWarnings`. - `RedirectUrl` - `RequestTokenUrl`
상속: ServiceStack.Auth.OAuthProvider
파일 보기 프로젝트 열기: jfoshee/ServiceStack.Authentication.Aad 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
Realm string

공개 메소드들

메소드 설명
AadAuthProvider ( IAppSettings appSettings ) : ServiceStack.Auth
AadAuthProvider ( string clientId, string clientSecret ) : ServiceStack.Auth
AadAuthProvider ( string clientId, string clientSecret, IAppSettings appSettings ) : ServiceStack.Auth
Authenticate ( IServiceBase authService, IAuthSession session, Authenticate request ) : object
LoadUserOAuthProvider ( IAuthSession authSession, IAuthTokens tokens ) : void
Logout ( IServiceBase service, Authenticate request ) : object
OnAuthenticated ( IServiceBase authService, IAuthSession session, IAuthTokens tokens, string>.Dictionary authInfo ) : IHttpResult
RedirectToMicrosoftLogout ( IServiceBase authService ) : IHttpResult

Returns a redirect result to a Microsoft logout page

보호된 메소드들

메소드 설명
GetReferrerUrl ( IServiceBase authService, IAuthSession session, Authenticate request = null ) : string
LoadUserAuthInfo ( ServiceStack.Auth.AuthUserSession userSession, IAuthTokens tokens, string>.Dictionary authInfo ) : void
RedirectDueToFailure ( IServiceBase authService, IAuthSession session, NameValueCollection errorInfo ) : IHttpResult

비공개 메소드들

메소드 설명
AadAuthProvider ( ) : ServiceStack.Auth
FailAndLogError ( IAuthSession session, NameValueCollection errorInfo ) : void
HasError ( NameValueCollection info ) : bool
RequestAccessToken ( IServiceBase authService, IAuthSession session, string code, IAuthTokens tokens ) : IHttpResult
RequestCode ( IServiceBase authService, IAuthSession session, ServiceStack.Auth.AuthUserSession userSession, IAuthTokens tokens ) : object

메소드 상세

AadAuthProvider() 공개 메소드

public AadAuthProvider ( IAppSettings appSettings ) : ServiceStack.Auth
appSettings IAppSettings
리턴 ServiceStack.Auth

AadAuthProvider() 공개 메소드

public AadAuthProvider ( string clientId, string clientSecret ) : ServiceStack.Auth
clientId string
clientSecret string
리턴 ServiceStack.Auth

AadAuthProvider() 공개 메소드

public AadAuthProvider ( string clientId, string clientSecret, IAppSettings appSettings ) : ServiceStack.Auth
clientId string
clientSecret string
appSettings IAppSettings
리턴 ServiceStack.Auth

Authenticate() 공개 메소드

public Authenticate ( IServiceBase authService, IAuthSession session, Authenticate request ) : object
authService IServiceBase
session IAuthSession
request Authenticate
리턴 object

GetReferrerUrl() 보호된 메소드

protected GetReferrerUrl ( IServiceBase authService, IAuthSession session, Authenticate request = null ) : string
authService IServiceBase
session IAuthSession
request Authenticate
리턴 string

LoadUserAuthInfo() 보호된 메소드

protected LoadUserAuthInfo ( ServiceStack.Auth.AuthUserSession userSession, IAuthTokens tokens, string>.Dictionary authInfo ) : void
userSession ServiceStack.Auth.AuthUserSession
tokens IAuthTokens
authInfo string>.Dictionary
리턴 void

LoadUserOAuthProvider() 공개 메소드

public LoadUserOAuthProvider ( IAuthSession authSession, IAuthTokens tokens ) : void
authSession IAuthSession
tokens IAuthTokens
리턴 void

Logout() 공개 메소드

public Logout ( IServiceBase service, Authenticate request ) : object
service IServiceBase
request Authenticate
리턴 object

OnAuthenticated() 공개 메소드

public OnAuthenticated ( IServiceBase authService, IAuthSession session, IAuthTokens tokens, string>.Dictionary authInfo ) : IHttpResult
authService IServiceBase
session IAuthSession
tokens IAuthTokens
authInfo string>.Dictionary
리턴 IHttpResult

RedirectDueToFailure() 보호된 메소드

protected RedirectDueToFailure ( IServiceBase authService, IAuthSession session, NameValueCollection errorInfo ) : IHttpResult
authService IServiceBase
session IAuthSession
errorInfo System.Collections.Specialized.NameValueCollection
리턴 IHttpResult

RedirectToMicrosoftLogout() 공개 메소드

Returns a redirect result to a Microsoft logout page
public RedirectToMicrosoftLogout ( IServiceBase authService ) : IHttpResult
authService IServiceBase
리턴 IHttpResult

프로퍼티 상세

Realm 공개적으로 정적으로 프로퍼티

public static string Realm
리턴 string