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.
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.
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
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[[["\u003cp\u003eThis webpage details the \u003ccode\u003eAuthorizationRequestUrl\u003c/code\u003e class, which is used to construct OAuth 2.0 request URLs for obtaining user authorization to access protected resources, as defined by RFC6749.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eAuthorizationRequestUrl\u003c/code\u003e class includes properties such as \u003ccode\u003eClientId\u003c/code\u003e, \u003ccode\u003eRedirectUri\u003c/code\u003e, \u003ccode\u003eResponseType\u003c/code\u003e, \u003ccode\u003eScope\u003c/code\u003e, and \u003ccode\u003eState\u003c/code\u003e, which are essential for defining the parameters of an OAuth 2.0 authorization request.\u003c/p\u003e\n"],["\u003cp\u003eThe class is constructed with an \u003ccode\u003eauthorizationServerUrl\u003c/code\u003e and also contains an \u003ccode\u003eAuthorizationServerUrl\u003c/code\u003e property which allows for the retrieval of the authorization server URI.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eAuthorizationRequestUrl\u003c/code\u003e class inherits from the \u003ccode\u003eobject\u003c/code\u003e class and includes inherited members such as \u003ccode\u003eEquals\u003c/code\u003e, \u003ccode\u003eGetHashCode\u003c/code\u003e, and \u003ccode\u003eToString\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThis class has a derived type \u003ccode\u003eAuthorizationCodeRequestUrl\u003c/code\u003e and is located in the \u003ccode\u003eGoogle.Apis.Auth.OAuth2.Requests\u003c/code\u003e namespace within the \u003ccode\u003eGoogle.Apis.Auth.dll\u003c/code\u003e assembly.\u003c/p\u003e\n"]]],[],null,["# Class AuthorizationRequestUrl (1.69.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.69.0 (latest)](/dotnet/docs/reference/Google.Apis/latest/Google.Apis.Auth.OAuth2.Requests.AuthorizationRequestUrl)\n- [1.68.0](/dotnet/docs/reference/Google.Apis/1.68.0/Google.Apis.Auth.OAuth2.Requests.AuthorizationRequestUrl)\n- [1.60.0](/dotnet/docs/reference/Google.Apis/1.60.0/Google.Apis.Auth.OAuth2.Requests.AuthorizationRequestUrl)\n- [1.59.0](/dotnet/docs/reference/Google.Apis/1.59.0/Google.Apis.Auth.OAuth2.Requests.AuthorizationRequestUrl)\n- [1.55.0](/dotnet/docs/reference/Google.Apis/1.55.0/Google.Apis.Auth.OAuth2.Requests.AuthorizationRequestUrl)\n- [1.50.0](/dotnet/docs/reference/Google.Apis/1.50.0/Google.Apis.Auth.OAuth2.Requests.AuthorizationRequestUrl) \n\n public class AuthorizationRequestUrl\n\nOAuth 2.0 request URL for an authorization web page to allow the end user to authorize the application to\naccess their protected resources, as specified in \u003chttp://tools.ietf.org/html/rfc6749#section-3.1\u003e. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e AuthorizationRequestUrl \n\nInherited Members\n-----------------\n\n[object.Equals(object)](https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object)) \n[object.Equals(object, object)](https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object-system-object)) \n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.MemberwiseClone()](https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone) \n[object.ReferenceEquals(object, object)](https://learn.microsoft.com/dotnet/api/system.object.referenceequals) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring) \n\nDerived Types\n-------------\n\n[AuthorizationCodeRequestUrl](/dotnet/docs/reference/Google.Apis/latest/Google.Apis.Auth.OAuth2.Requests.AuthorizationCodeRequestUrl)\n\nNamespace\n---------\n\n[Google.Apis.Auth.OAuth2.Requests](/dotnet/docs/reference/Google.Apis/latest/Google.Apis.Auth.OAuth2.Requests)\n\nAssembly\n--------\n\nGoogle.Apis.Auth.dll\n\nConstructors\n------------\n\n### AuthorizationRequestUrl(Uri)\n\n public AuthorizationRequestUrl(Uri authorizationServerUrl)\n\nConstructs a new authorization request with the specified URI.\n\nProperties\n----------\n\n### AuthorizationServerUrl\n\n public Uri AuthorizationServerUrl { get; }\n\nGets the authorization server URI.\n\n### ClientId\n\n [RequestParameter(\"client_id\", RequestParameterType.Query)]\n public string ClientId { get; set; }\n\nGets or sets the client identifier.\n\n### RedirectUri\n\n [RequestParameter(\"redirect_uri\", RequestParameterType.Query)]\n public string RedirectUri { get; set; }\n\nGets or sets the URI that the authorization server directs the resource owner's user-agent back to the\nclient after a successful authorization grant, as specified in\n\u003chttp://tools.ietf.org/html/rfc6749#section-3.1.2\u003e or `null` for none.\n\n### ResponseType\n\n [RequestParameter(\"response_type\", RequestParameterType.Query)]\n public string ResponseType { get; set; }\n\nGets or sets the response type which must be `code` for requesting an authorization code or\n`token` for requesting an access token (implicit grant), or space separated registered extension\nvalues. See \u003chttp://tools.ietf.org/html/rfc6749#section-3.1.1\u003e for more details\n\n### Scope\n\n [RequestParameter(\"scope\", RequestParameterType.Query)]\n public string Scope { get; set; }\n\nGets or sets space-separated list of scopes, as specified in \u003chttp://tools.ietf.org/html/rfc6749#section-3.3\u003e\nor `null` for none.\n\n### State\n\n [RequestParameter(\"state\", RequestParameterType.Query)]\n public string State { get; set; }\n\nGets or sets the state (an opaque value used by the client to maintain state between the request and\ncallback, as mentioned in \u003chttp://tools.ietf.org/html/rfc6749#section-3.1.2.2\u003e or `null` for none.\n\nExtension Method\n----------------\n\n[Utilities.ThrowIfNull\\\u003cT\\\u003e(T, string)](/dotnet/docs/reference/Google.Apis/latest/Google.Apis.Util.Utilities#Google_Apis_Util_Utilities_ThrowIfNull__1___0_System_String_)"]]