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.
Inherited Members
Namespace: Google.Apis.Auth.OAuth2.Requests
Assembly: Google.Apis.Auth.dll
Syntax
public class AuthorizationRequestUrl
Constructors
AuthorizationRequestUrl(Uri)
Constructs a new authorization request with the specified URI.
Declaration
public AuthorizationRequestUrl(Uri authorizationServerUrl)
Parameters
Type | Name | Description |
---|---|---|
Uri | authorizationServerUrl | Authorization server URI |
Properties
AuthorizationServerUrl
Gets the authorization server URI.
Declaration
public Uri AuthorizationServerUrl { get; }
Property Value
Type | Description |
---|---|
Uri |
ClientId
Gets or sets the client identifier.
Declaration
[RequestParameter("client_id", RequestParameterType.Query)]
public string ClientId { get; set; }
Property Value
Type | Description |
---|---|
string |
RedirectUri
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.
Declaration
[RequestParameter("redirect_uri", RequestParameterType.Query)]
public string RedirectUri { get; set; }
Property Value
Type | Description |
---|---|
string |
ResponseType
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
Declaration
[RequestParameter("response_type", RequestParameterType.Query)]
public string ResponseType { get; set; }
Property Value
Type | Description |
---|---|
string |
Scope
Gets or sets space-separated list of scopes, as specified in http://tools.ietf.org/html/rfc6749#section-3.3
or null
for none.
Declaration
[RequestParameter("scope", RequestParameterType.Query)]
public string Scope { get; set; }
Property Value
Type | Description |
---|---|
string |
State
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.
Declaration
[RequestParameter("state", RequestParameterType.Query)]
public string State { get; set; }
Property Value
Type | Description |
---|---|
string |