Property | Type | Description | |
---|---|---|---|
DefaultEnvironments | string[] | ||
DefaultKeySizeBytes | int | ||
DefaultTypes | string[] |
Method | Description | |
---|---|---|
ApiKeyAuthProvider ( ) : System | ||
ApiKeyAuthProvider ( IAppSettings appSettings ) : System | ||
Authenticate ( IServiceBase authService, IAuthSession session, Authenticate request ) : object | ||
CreateApiKey ( string environment, string keyType, int sizeBytes ) : string | ||
GenerateNewApiKeys ( string userId ) : List |
||
GetSessionKey ( string apiKey ) : string | ||
IsAuthorized ( IAuthSession session, IAuthTokens tokens, Authenticate request = null ) : bool | ||
OnFailedAuthentication ( IAuthSession session, IRequest httpReq, IResponse httpRes ) : void | ||
PreAuthenticate ( IRequest req, IResponse res ) : void | ||
Register ( IAppHost appHost, AuthFeature feature ) : void |
Method | Description | |
---|---|---|
GetApiKey ( IRequest req, string apiKey ) : |
||
Init ( IAppSettings appSettings = null ) : void | ||
ValidateApiKey ( |
Method | Description | |
---|---|---|
PreAuthenticateWithApiKey ( IRequest req, IResponse res, |
public ApiKeyAuthProvider ( IAppSettings appSettings ) : System | ||
appSettings | IAppSettings | |
return | System |
public Authenticate ( IServiceBase authService, IAuthSession session, Authenticate request ) : object | ||
authService | IServiceBase | |
session | IAuthSession | |
request | Authenticate | |
return | object |
public CreateApiKey ( string environment, string keyType, int sizeBytes ) : string | ||
environment | string | |
keyType | string | |
sizeBytes | int | |
return | string |
public GenerateNewApiKeys ( string userId ) : List |
||
userId | string | |
return | List |
protected GetApiKey ( IRequest req, string apiKey ) : |
||
req | IRequest | |
apiKey | string | |
return |
public static GetSessionKey ( string apiKey ) : string | ||
apiKey | string | |
return | string |
protected Init ( IAppSettings appSettings = null ) : void | ||
appSettings | IAppSettings | |
return | void |
public IsAuthorized ( IAuthSession session, IAuthTokens tokens, Authenticate request = null ) : bool | ||
session | IAuthSession | |
tokens | IAuthTokens | |
request | Authenticate | |
return | bool |
public OnFailedAuthentication ( IAuthSession session, IRequest httpReq, IResponse httpRes ) : void | ||
session | IAuthSession | |
httpReq | IRequest | |
httpRes | IResponse | |
return | void |
public PreAuthenticate ( IRequest req, IResponse res ) : void | ||
req | IRequest | |
res | IResponse | |
return | void |
public Register ( IAppHost appHost, AuthFeature feature ) : void | ||
appHost | IAppHost | |
feature | AuthFeature | |
return | void |
protected ValidateApiKey ( |
||
apiKey | ||
return | void |
public static string[] DefaultEnvironments | ||
return | string[] |