WebAuthenticatorResult Class

Definition

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

public ref class WebAuthenticatorResult
public class WebAuthenticatorResult
type WebAuthenticatorResult = class
Public Class WebAuthenticatorResult
Inheritance
WebAuthenticatorResult

Remarks

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.

WebAuthenticatorResult(IDictionary<String,String>)

Create a new instance from an existing dictionary.

WebAuthenticatorResult(Uri)

Initializes a new instance of the WebAuthenticatorResult class by parsing a URI's query string parameters.

WebAuthenticatorResult(Uri, IWebAuthenticatorResponseDecoder)

Initializes a new instance of the WebAuthenticatorResult class by parsing a URI's query string parameters.

Properties

AccessToken

The value for the access_token key.

CallbackUri

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

ExpiresIn

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

The value for the id_token key.

Properties

The dictionary of key/value pairs parsed form the callback URI's query string.

RefreshToken

The value for the refresh_token key.

RefreshTokenExpiresIn

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

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

Methods

Get(String)

Gets a value for a given key from the dictionary.

Put(String, String)

Puts a key/value pair into the dictionary.

Applies to