# Namespace Google.Apis.Auth.OAuth2.Responses (1.73.0)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [1.73.0 (latest)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Apis/latest/Google.Apis.Auth.OAuth2.Responses)
- [1.69.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Apis/1.69.0/Google.Apis.Auth.OAuth2.Responses)
- [1.68.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Apis/1.68.0/Google.Apis.Auth.OAuth2.Responses)
- [1.60.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Apis/1.60.0/Google.Apis.Auth.OAuth2.Responses)
- [1.59.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Apis/1.59.0/Google.Apis.Auth.OAuth2.Responses)
- [1.55.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Apis/1.55.0/Google.Apis.Auth.OAuth2.Responses)
- [1.50.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Apis/1.50.0/Google.Apis.Auth.OAuth2.Responses)

## Classes

### [AuthorizationCodeResponseUrl](https://docs.cloud.google.com/dotnet/docs/reference/Google.Apis/latest/Google.Apis.Auth.OAuth2.Responses.AuthorizationCodeResponseUrl)

Authorization Code response for the redirect URL after end user grants or denies authorization as specified
in <http://tools.ietf.org/html/rfc6749#section-4.1.2>.


Check that [Code](https://docs.cloud.google.com/dotnet/docs/reference/Google.Apis/latest/Google.Apis.Auth.OAuth2.Responses.AuthorizationCodeResponseUrl#Google_Apis_Auth_OAuth2_Responses_AuthorizationCodeResponseUrl_Code) is not `null` or empty to verify the end-user granted authorization.

<br />

### [TokenErrorResponse](https://docs.cloud.google.com/dotnet/docs/reference/Google.Apis/latest/Google.Apis.Auth.OAuth2.Responses.TokenErrorResponse)

OAuth 2.0 model for a unsuccessful access token response as specified in
<http://tools.ietf.org/html/rfc6749#section-5.2>.

### [TokenResponse](https://docs.cloud.google.com/dotnet/docs/reference/Google.Apis/latest/Google.Apis.Auth.OAuth2.Responses.TokenResponse)

OAuth 2.0 model for a successful access token response as specified in
<http://tools.ietf.org/html/rfc6749#section-5.1>.

### [TokenResponseException](https://docs.cloud.google.com/dotnet/docs/reference/Google.Apis/latest/Google.Apis.Auth.OAuth2.Responses.TokenResponseException)

Token response exception which is thrown in case of receiving a token error when an authorization code or an
access token is expected.