Method | Description | |
---|---|---|
GetLoginLinkUri ( string state = null ) : string |
Returns URI of service which should be called in order to start authentication process. This URI should be used for rendering login link. Any additional information that will be posted back by service. |
|
GetUserInfo ( |
Obtains user information using OAuth2 service and data provided via callback request.
|
Method | Description | |
---|---|---|
AfterGetAccessToken ( IRestResponse response ) : void |
Called just after obtaining response with access token from service. Allows to read extra data returned along with access token.
|
|
BeforeGetUserInfo ( IRestRequest request ) : void |
Called just before issuing request to service when everything is ready. Allows to add extra parameters to request or do any other needed preparations.
|
|
OAuth2Client ( IRequestFactory factory, IClientConfiguration configuration ) : System |
Initializes a new instance of the OAuth2Client class.
|
|
ParseUserInfo ( string content ) : OAuth2.Models.UserInfo |
Should return parsed UserInfo using content received from provider.
|
Method | Description | |
---|---|---|
GetAccessToken ( |
Issues query for access token and parses response.
|
|
GetUserInfo ( string accessToken ) : OAuth2.Models.UserInfo |
Obtains user information using provider API.
|
protected AfterGetAccessToken ( IRestResponse response ) : void | ||
response | IRestResponse | |
return | void |
protected BeforeGetUserInfo ( IRestRequest request ) : void | ||
request | IRestRequest | |
return | void |
public GetLoginLinkUri ( string state = null ) : string | ||
state | string | |
return | string |
public GetUserInfo ( |
||
parameters | Callback request payload (parameters). | |
return | OAuth2.Models.UserInfo |
protected OAuth2Client ( IRequestFactory factory, IClientConfiguration configuration ) : System | ||
factory | IRequestFactory | The factory. |
configuration | IClientConfiguration | The configuration. |
return | System |
protected abstract ParseUserInfo ( string content ) : OAuth2.Models.UserInfo | ||
content | string | The content which is received from provider. |
return | OAuth2.Models.UserInfo |