OAuth

Overview

OAuth 2.0 (Open Authorization) is a set of specifications that allow developers to delegate the authorization of their users to someone else. An OAuth flow refers to the sequence of steps and interactions between all parties to obtain an access token. The parties involved are:

Grants

A grant is a method or set of credentials used to request an access token. The grant type has an impact on how the overall OAuth flow behaves. There exist a number of additional parameters that influence how the access token is generated:

Authorization Code

The authorization code grant has a response_type of code. In this grant, the authorization server issues a short-lived authorization code to the client, usually using the resource owner as a proxy. The client can then exchange this (along with its client_id and client_secret) for an access token.

Password

The password grant has a grant_type of password. In this grant, the username and password are provided directly to the client. The client then forwards this to the authorization server.

Powered by Forestry.md