Class AuthorizationRequestUrl (1.59.0)

public class AuthorizationRequestUrl

OAuth 2.0 request URL for an authorization web page to allow the end user to authorize the application to access their protected resources, as specified in http://tools.ietf.org/html/rfc6749#section-3.1.

Inheritance

Object > AuthorizationRequestUrl

Namespace

Google.Apis.Auth.OAuth2.Requests

Assembly

Google.Apis.Auth.dll

Constructors

AuthorizationRequestUrl(Uri)

public AuthorizationRequestUrl(Uri authorizationServerUrl)

Constructs a new authorization request with the specified URI.

Parameter
NameDescription
authorizationServerUrlUri

Authorization server URI

Properties

AuthorizationServerUrl

public Uri AuthorizationServerUrl { get; }

Gets the authorization server URI.

Property Value
TypeDescription
Uri

ClientId

[RequestParameter("client_id", RequestParameterType.Query)]
public string ClientId { get; set; }

Gets or sets the client identifier.

Property Value
TypeDescription
String

RedirectUri

[RequestParameter("redirect_uri", RequestParameterType.Query)]
public string RedirectUri { get; set; }

Gets or sets the URI that the authorization server directs the resource owner's user-agent back to the client after a successful authorization grant, as specified in http://tools.ietf.org/html/rfc6749#section-3.1.2 or null for none.

Property Value
TypeDescription
String

ResponseType

[RequestParameter("response_type", RequestParameterType.Query)]
public string ResponseType { get; set; }

Gets or sets the response type which must be code for requesting an authorization code or token for requesting an access token (implicit grant), or space separated registered extension values. See http://tools.ietf.org/html/rfc6749#section-3.1.1 for more details

Property Value
TypeDescription
String

Scope

[RequestParameter("scope", RequestParameterType.Query)]
public string Scope { get; set; }

Gets or sets space-separated list of scopes, as specified in http://tools.ietf.org/html/rfc6749#section-3.3 or null for none.

Property Value
TypeDescription
String

State

[RequestParameter("state", RequestParameterType.Query)]
public string State { get; set; }

Gets or sets the state (an opaque value used by the client to maintain state between the request and callback, as mentioned in http://tools.ietf.org/html/rfc6749#section-3.1.2.2 or null for none.

Property Value
TypeDescription
String

Extension Method