---
jsApi: true
title: "[I] Oauth2Auth"

---
OAuth 2.0 is an authorization protocol that gives an API client limited access to user data on a web server.
OAuth relies on authentication scenarios called flows, which allow the resource owner (user) to share the protected content from the resource server without sharing their credentials.
For that purpose, an OAuth 2.0 server issues access tokens that the client applications can use to access protected resources on behalf of the resource owner.
For more information about OAuth 2.0, see oauth.net and RFC 6749.

## Extends

- [`HttpAuthBase`](HttpAuthBase.md)

## Type parameters

| Type parameter |
| :------ |
| `TFlows` extends [`OAuth2Flow`](../type-aliases/OAuth2Flow.md)[] |

## Properties

| Property | Type | Description | Inherited from |
| :------ | :------ | :------ | :------ |
| `description?` | `string` | Optional description. | [`HttpAuthBase`](HttpAuthBase.md).`description` |
| `flows` | `TFlows` | - | - |
| `id` | `string` | Id of the authentication scheme. | [`HttpAuthBase`](HttpAuthBase.md).`id` |
| `type` | `"oauth2"` | - | - |
