Intuit.Ipp.OAuth2PlatformClient
Intuit.Ipp.OAuth2PlatformClient has OAuth2 specific client lib with helper classes for different calls related to getting tokens and managing them.
Helper class for Base64 Url conversions
Encodes byte array to Base 64 string
Converts from Base 64 string to byte array
Enum class for AuthenticationStyle
Helper class fo creating Authorize url
Maps authorize endpoint
Maps authorize endpoint
Formats values to the required url format
Extension class for AuthorizeRequest
Create Authorize request
string
Create Authorize Url
AuthorizeResponse Class to map response from Authroize call
Decodes url
string
Discovery Client ot get details from Discovery Url
GetAsync call for Discovery Url
HttpClient
Authority
Url
Policy
Timeout
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
Handles exception response from Token api call
Handles exception response from Token api call
Strongly typed getters
Generic getters
Validates Discovery policy
string
Validates Issuer Name
bool
Validates Endpoints
bool
Json Object extension
Helper for Json object
JToken
Helper for Json object
string
Helper for Json object
bool
Enum for Response Error
TokenClient Class
Constructor
Constructor
Constructor
Constructor
ClientId
ClientSecret
Address
TimeOut
RequestAsync call
TokenResponse class to map response from Token call
Handles success raw response from Token api call
Handles exception response from Token api call
Handles exception response from Token api call
Returns Access Token expiry value
Returns RefreshToken Expiry Value
Handles error
Helper to get Name
JsonToken Class
TokenRevocationClient Class
Client
Address
AuthenticationStyle
ClientId
ClientSecret
TokenRevocationClient
Timeout
Extension Class for TokenRevocationClient
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
Handles exception response from Token Revoke api call
Handles exception response from UserInfo api call
Handles Error
Constructor
Constructor
UserInfoResponse Class to map response from UserInfo call
Handles successful raw response from UserInfo api call
Handles exception response from UserInfo api call
A class that mimics the standard Random class in the .NET Framework - but uses a random number generator internally.
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.
Helper class for Epoch time conversions
Converts the given date value to epoch time.
Converts the given date value to epoch time.
Converts the given epoch time to a with kind.
Converts the given epoch time to a UTC .
Helper class for Identity Token Header
Helper class for Identity Token Claims
Validate url scheme
boolean value
Validate if url scheme is https or not
boolean value
Ensures trailing slash at the end of the url
string
Removes trailing slash at the end of the 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.
string
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
Class for deserializing the UserInfoResponse
Constants for JsonWebAlgorithms Key Type
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
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.
Formatter for Basic Authentication header
HttpClientExtensions for Headers
Sets Basic Authentication header value
Sets Token value
Sets BearerToken value