C# Class RicOneApi.Api.Authenticator

Contains methods to authenticate and pull data from auth server
Afficher le fichier Open project: RIConeorg/API-ClientLibrary-DotNet Class Usage Examples

Méthodes publiques

Méthode 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

Méthode 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 méthode

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

GetEndpoints() public méthode

All endpoints
public GetEndpoints ( ) : List
Résultat List

GetEndpoints() public méthode

Endpoint by specified providerId
public GetEndpoints ( string providerId ) : List
providerId string
Résultat List

GetToken() public méthode

Token value
public GetToken ( ) : String
Résultat String