Intuit.Ipp.OAuth2PlatformClient
Enum class for AuthenticationStyle
Helper class fo creating Authorize url
Maps authorize endpoint
Maps authorize endpoint
Formats values to the required url format
values
Extension class for AuthorizeRequest
Create Authorize request
request
values
string
Create Authorize Url
request
clientId
responseType
scope
redirectUri
state
extra
string
Helper class to map values to Dictionary
dictionary
Helper class to map values to Dictionary
dictionary
AuthorizeResponse Class to map response from Authroize call
Constructor
Decodes url
string
Discovery Client ot get details from Discovery Url
GetAsync call for Discovery Url
authority
HttpClient
Authority
Url
Policy
Timeout
DiscoveryClient Method to call discoery url
authority
innerHandler
DiscoveryClient constructor which takes in app environment
app Environment
DiscoveryClient constructor which takes in string discovery Url
authority
GetAsync call for Discovery
cancellationToken
Task for Discoverresponse
Get call for Discovery Document synchronous
Validates Discovery doc values
Sets the discovery authority if not present in application configuration
Specifies if HTTPS is enforced on all endpoints. Defaults to true.
Specifies if the issuer name is checked to be identical to the authority. Defaults to true.
DiscoveryResponse class to handle response from Discovery call
Handles success raw response from Token api call
raw
policy
Handles exception response from Token api call
statusCode
reason
Handles exception response from Token api call
exception
errorMessage
Strongly typed getters
Generic getters
Validates Discovery policy
policy
string
Validates Issuer Name
issuer
authority
bool
Validates Endpoints
json
policy
bool
Json Object extension
Converts Json object to Claims
json
IEnumerable Claim
Helper for Json object
json
name
JToken
Helper for Json object
json
name
string
Helper for Json object
json
name
bool
Helper for Json object
json
name
IEnumerable string
ClientId
ClientSecret
RedirectUri
DiscoveryDoc
AppEnvironment
CSRFToken
DiscoveryUrl
OAuth2Client constructor
This can either be sandbox, production or an actual discovery url
Gets Discovery Doc
Get Authorization Url
Get Authorization Url
Gets Bearer token from Authorization code
Refreshes access token to get new access token
Revoke token using either access or refresh token
Get User Info
Validates ID token
Generate random CSRF token
RefreshTokenHandler Class
Gets the current access token
Gets the current refresh token
Constructor
tokenEndpoint
clientId
clientSecret
refreshToken
accessToken
innerHandler
Constructor
client
refreshToken
accessToken
innerHandler
ClientId
ClientSecret
Address
AuthenticationStyle
Override methos for SendAsync
request
cancellationToken
Task of HttpResponseMessage
Dispose method
disposing
RefreshTokeAsync call
cancellationToken
Task of bool
GetAccessTokeAsync call
cancellationToken
Task of string
Enum for Response Error
TokenClient Class
Constructor
endpoint
Constructor
endpoint
innerHttpMessageHandler
Constructor
endpoint
clientId
clientSecret
style
Constructor
endpoint
clientId
clientSecret
innerHttpMessageHandler
ClientId
ClientSecret
Address
AuthenticationStyle
TimeOut
RequestAsync call
form
cancellationToken
task of TokenResponse
Dispose call
Virtual Dispose call
TokenClientExtensions class
RequestTokenFromCodeAsync call
client
code
redirectUri
codeVerifier
extra
cancellationToken
task of TokenResponse
RequestRefreshTokenAsync call
client
refreshToken
extra
cancellationToken
task of TokenResponse
Merge call
client
explicitValues
extra
Dictionary
ObjectToDictionary call
values
Dictionary
TokenResponse class to map response from Token call
Handles success raw response from Token api call
raw
Handles exception response from Token api call
exception
Handles exception response from Token api call
statusCode
reason
Returns Access Token expiry value
Returns RefreshToken Expiry Value
Handles error
Helper to get Name
JsonToken Class
TokenRevocationClient Class
Client
Address
AuthenticationStyle
ClientId
ClientSecret
Timeout
RevokeAsync
request
cancellationToken
Task of TokenRevocationResponse
Extension Class for TokenRevocationClient
RevokeAccessTokenAsync
client
token
cancellationToken
Task of TokenRevocationResponse
RevokeRefreshTokenAsync
client
token
cancellationToken
Task of TokenRevocationResponse
TokenRevocationRequest Class
Token
ClientId
ClientSecret
Constructor
TokenRevocationResponse to handle response from Token Revoke call
Handles successful raw response from Token Revoke api call
Handles successful raw response from Token Revoke api call
raw
Handles exception response from Token Revoke api call
statusCode
reason
Handles exception response from UserInfo api call
exception
Handles Error
UserInfoClient class
Constructor
endpoint
Constructor
endpoint
innerHttpMessageHandler
Timeout
GetAsync
token
cancellationToken
Task of UserInfoResponse
UserInfoResponse Class to map response from UserInfo call
Handles successful raw response from UserInfo api call
raw
Handles exception response from UserInfo api call
statusCode
reason
UserInfoResponse
exception
Intuit.Ipp.OAuth2PlatformClient has OAuth2 specific client lib with helper classes for different calls related to getting tokens and managing them.
This attribute is used to represent a string value
for a value in an enum.
Holds the stringvalue for a value in an enum.
Constructor used to init a StringValue Attribute
AppEnvironment enum
Helper class for Base64 Url conversions
Encodes byte array to Base 64 string
arg
Converts from Base 64 string to byte array
arg
A class that mimics the standard Random class in the .NET Framework - but uses a random number generator internally.
Create Random keys bytes
lenth
byte array
Create Random key string
length
string
Create Unique Id
string
Convert Byte array to string
byte array
string
Initializes a new instance of the class.
Initializes a new instance of the class.
seed (ignored)
Returns a nonnegative random number.
A 32-bit signed integer greater than or equal to zero and less than .
Returns a nonnegative random number less than the specified maximum.
The exclusive upper bound of the random number to be generated. must be greater than or equal to zero.
A 32-bit signed integer greater than or equal to zero, and less than ; that is, the range of return values ordinarily includes zero but not . However, if equals zero, is returned.
is less than zero.
Returns a random number within a specified range.
The inclusive lower bound of the random number returned.
The exclusive upper bound of the random number returned. must be greater than or equal to .
A 32-bit signed integer greater than or equal to and less than ; that is, the range of return values includes but not . If equals , is returned.
is greater than .
Returns a random number between 0.0 and 1.0.
A double-precision floating point number greater than or equal to 0.0, and less than 1.0.
Fills the elements of a specified array of bytes with random numbers.
An array of bytes to contain random numbers.
is null.
DiscoveryUrlHelper class
Validate url scheme
boolean value
Validate if url scheme is https or not
boolean value
Helper class for Epoch time conversions
Converts the given date value to epoch time.
dateTime
long
Converts the given date value to epoch time.
dateTime Offset value
long
Converts the given epoch time to a with kind.
DateTime
Converts the given epoch time to a UTC .
DateTimeOffset
Helper class for Identity Token Header
kid
alg
Helper class for Identity Token Claims
sub
aud
realmId
auth_time
iss
exp
iat
Open id connect constants class
Authorize request query params
AuthorizeErrors class
AuthorizeResponse class
TokenRequest class
TokenErrors class
TokenResponse class
TokenTypes class
GratTypes class
Discovery class
This attribute is used to represent a string value
for a value in an enum.
Holds the stringvalue for a value in an enum.
Constructor used to init a StringValue Attribute
OidcScopes enum
String extensions class
Ensures trailing slash at the end of the url
url
string
Removes trailing slash at the end of the url
url
string
Will get the string value for a given enums value, this will
only work if you assign the StringValue attribute to
the items in your enum.
value
string
Helper class to do equality checks without leaking timing information
Checks two strings for equality without leaking timing information.
string 1.
string 2.
true if the specified strings are equal; otherwise, false.
Class for deserializing the UserInfoResponse
Class for deserializing the Address returned
Constants for JsonWebAlgorithms Key Type
RSA const
Represents a Json Web Key as defined in http://tools.ietf.org/html/rfc7517.
Initializes an new instance of .
Initializes an new instance of from a json string.
a string that contains JSON Web Key parameters in JSON format.
Gets or sets the 'kty' (Key Type)..
Gets or sets the 'e' (RSA - Exponent)..
Gets or sets the 'use' (Public Key Use)..
Gets or sets the 'kid' (Key ID)..
Gets or sets the 'alg' (KeyType)..
Gets or sets the 'n' (RSA - Modulus)..
value is formated as: Base64urlEncoding
Returns KeySize
Names for Json Web Key Values
Contains a collection of that can be populated from a json string.
Initializes an new instance of .
Initializes an new instance of from a json string.
a json string containing values.
if 'json' is null or whitespace.
Gets the .
Extension class for Json Wek Key
Formatter for Basic Authentication header
Constructor
clientId
clientSecret
HttpClientExtensions for Headers
Sets Basic Authentication header value
client
clientId
clientSecret
Sets Token value
client
scheme
token
Sets BearerToken value
client
token