Skip to main content

WebAuthenticatorResult

Namespace: Wisej.Hybrid

Assembly: Wisej.Hybrid (4.1.0.0)

Represents a Web Authenticator Result object parsed from the callback Url.

public class WebAuthenticatorResult

All of the query string or url fragment properties are parsed into a dictionary and can be accessed by their key.

Constructors​

Instance member WebAuthenticatorResult()​

Initializes a new instance of the WebAuthenticatorResult class.

Properties​

Instance member AccessToken​

String: The value for the access_token key.

Value: Access Token parsed from the callback URI access_token parameter.

Instance member CallbackUri​

Uri: The uri that was used to call back with the access token.

Value: The value of the callback URI, including the fragment or query string bearing the access token and associated information.

Instance member ExpiresIn​

Nullable<DateTimeOffset>: The expiry date as calculated by the timestamp of when the result was created plus the value in seconds for the expires_in key.

Value: Timestamp of the creation of the object instance plus the expires_in seconds parsed from the callback URI.

Instance member IdToken​

String: The value for the id_token key.

Value: The value for the id_token key.

Apple doesn't return an access token on iOS native sign in, but it does return id_token as a JWT.

Instance member Properties​

Dictionary<String, String>: The dictionary of key/value pairs parsed form the callback URI's query string.

Instance member RefreshToken​

String: The value for the refresh_token key.

Value: Refresh Token parsed from the callback URI refresh_token parameter.

Instance member RefreshTokenExpiresIn​

Nullable<DateTimeOffset>: The refresh token expiry date as calculated by the timestamp of when the result was created plus the value in seconds for the refresh_token_expires_in key.

Value: Timestamp of the creation of the object instance plus the expires_in seconds parsed from the callback URI.

Instance member Timestamp​

DateTimeOffset: The timestamp when the class was instantiated, which usually corresponds with the parsed result of a request.

Methods​

Instance member Get(key)​

Gets a value for a given key from the dictionary.

ParameterTypeDescription
keyStringKey from the callback URI's query string.

Returns: String.

Instance member Put(key, value)​

Puts a key/value pair into the dictionary.

ParameterTypeDescription
keyString
valueString