Skip to main content

WebAuthenticatorResult

Namespace: Wisej.Hybrid.Shared.Authenticator

Assembly: Wisej.Hybrid

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 memberWebAuthenticatorResult()​

Initializes a new instance of the WebAuthenticatorResult class.

Properties​

Instance memberAccessToken​

String: The value for the access_token key.

Instance memberCallbackUri​

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

Instance memberExpiresIn​

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.

Instance memberIdToken​

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.

Instance memberProperties​

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

Instance memberRefreshToken​

String: The value for the refresh_token key.

Instance memberRefreshTokenExpiresIn​

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.

Instance memberTimestamp​

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

Methods​

Instance memberGet(key)​

Gets a value for a given key from the dictionary.

ParameterTypeDescription
keyStringKey from the callback URI's query string.

Returns: String.

Instance memberPut(key, value)​

Puts a key/value pair into the dictionary.

ParameterTypeDescription
keyString
valueString