C# Client Library
A C# Client Library for the AnalyzeRe REST API
Loading...
Searching...
No Matches
AnalyzeRe.Authentication.MachineToMachineAuth Class Reference

Machine-to-Machene authorization workflow. More...

Public Member Functions

 MachineToMachineAuth (string clientId, string secret, string scope, string authEndpoint)
 Machine-to-machine authorization workflow.
 
async Task< bool > Authorize ()
 Sets AccessToken and returns true if authorization was successful. Otherwise, it sets ErrorDescription.
 

Properties

BearerAuthenticationToken AccessToken [get]
 If Authorize() returns true then this property contains a new access token.
 
string ErrorDescription [get]
 If Authorize() returns false then this property contains an error message.
 

Detailed Description

Machine-to-Machene authorization workflow.

Definition at line 11 of file MachineToMachineAuth.cs.

Constructor & Destructor Documentation

◆ MachineToMachineAuth()

AnalyzeRe.Authentication.MachineToMachineAuth.MachineToMachineAuth ( string  clientId,
string  secret,
string  scope,
string  authEndpoint 
)
inline

Machine-to-machine authorization workflow.

Parameters
clientIdProvided by Customer Success team.
secretProvided by Customer Success team.
scopeProvided by Customer Success team.
authEndpointProvided by Customer Success team.

Definition at line 38 of file MachineToMachineAuth.cs.

Member Function Documentation

◆ Authorize()

async Task< bool > AnalyzeRe.Authentication.MachineToMachineAuth.Authorize ( )
inline

Sets AccessToken and returns true if authorization was successful. Otherwise, it sets ErrorDescription.

Definition at line 49 of file MachineToMachineAuth.cs.

Property Documentation

◆ AccessToken

BearerAuthenticationToken AnalyzeRe.Authentication.MachineToMachineAuth.AccessToken
get

If Authorize() returns true then this property contains a new access token.

Definition at line 16 of file MachineToMachineAuth.cs.

◆ ErrorDescription

string AnalyzeRe.Authentication.MachineToMachineAuth.ErrorDescription
get

If Authorize() returns false then this property contains an error message.

Definition at line 21 of file MachineToMachineAuth.cs.


The documentation for this class was generated from the following file: