WebAuthenticatorResult

Wisej.Hybrid.Shared.Authenticator.WebAuthenticatorResult

Namespace: Wisej.Hybrid.Shared.Authenticator

Assembly: Wisej.Hybrid (3.5.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

WebAuthenticatorResult()

Initializes a new instance of the WebAuthenticatorResult class.

Properties

AccessToken

String: The value for the access_token key.

CallbackUri

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

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.

IdToken

String: 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.

Properties

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

RefreshToken

String: The value for the refresh_token key.

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.

Timestamp

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

Methods

Get(key)

Gets a value for a given key from the dictionary.

Parameter
Type
Description

key

Key from the callback URI's query string.

Returns: String.

Put(key, value)

Puts a key/value pair into the dictionary.

Parameter
Type
Description

value

Last updated