WebAuthenticatorResult Class

Definition

Web Authenticator Result parsed from the callback Url.

public class WebAuthenticatorResult
Inheritance
WebAuthenticatorResult

Remarks

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

Constructors

WebAuthenticatorResult()
WebAuthenticatorResult(IDictionary<String,String>)

Create a new instance from an existing dictionary.

WebAuthenticatorResult(Uri)

Create a new instance by parsing a Uri's querystring parameters.

Properties

AccessToken

The value for the access_token key.

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 querystring.

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