C# Class RicOneApi.Api.Authenticator

Contains methods to authenticate and pull data from auth server
显示文件 Open project: RIConeorg/API-ClientLibrary-DotNet Class Usage Examples

Public Methods

Method Description
Authenticate ( string authUrl, string clientId, string clientSecret ) : void

Establish connection to authenticate to authentication server

GetEndpoints ( ) : List

All endpoints

GetEndpoints ( string providerId ) : List

Endpoint by specified providerId

GetToken ( ) : String

Token value

Private Methods

Method Description
Authenticator ( ) : System
Login ( string authUrl, string clientId, string clientSecret ) : void

Post to authentication server with provided credentials

RefreshToken ( ) : void

Re-authenticates with authentication server if token is expired

Method Details

Authenticate() public method

Establish connection to authenticate to authentication server
public Authenticate ( string authUrl, string clientId, string clientSecret ) : void
authUrl string
clientId string
clientSecret string
return void

GetEndpoints() public method

All endpoints
public GetEndpoints ( ) : List
return List

GetEndpoints() public method

Endpoint by specified providerId
public GetEndpoints ( string providerId ) : List
providerId string
return List

GetToken() public method

Token value
public GetToken ( ) : String
return String