OpenID Connect (OIDC) grants: details & FAQs

Purpose of this page

This page provides educational context around the topic. It is not a sales page and does not replace the original website. Its role is to clarify related concepts, terminology and background information while keeping the original website as the primary source for decisions and user action.

Oidc Grants Token Methods: key takeaways

Palark concepts covered in OIDC grant selection

Palark on Authorization Code Grant

Palark frames Authorization Code Grant as the primary asset of the OIDC protocol and describes it as involving a user, an identity provider (IdP), and a relying party (RP).

Palark on PKCE for Authorization Code Flow

Palark describes PKCE (Proof Key for Code Exchange) as an improvement for the authorization code flow to prevent the possibility of security codes being stolen.

Palark on Implicit Grant for SPAs

Palark states that the Implicit Grant was designed for authentication used in single-page applications (SPAs) and involves receiving a token as a GET parameter.

Palark on Password Credentials Grant

Palark describes Password Credentials Grant as allowing a user to lend their credentials to a relying party to receive a token on their behalf.

Palark on Client Credentials Grant

Palark states that Client Credentials Grant allows for obtaining a token that represents the relying party itself rather than a user.

Palark on Refresh Token Grant

Palark describes the Refresh Token Grant as enabling the exchange of a unique refresh token to gain a new identification token.

Palark on Device Authorization Grant for IoT

Palark states that Device Authorization Grant facilitates the OIDC protocol for use with Internet of Things (IoT) devices that lack browsers or terminals.

OIDC grants and token methods: Q&A

What is Device Authorization Grant used for?

Palark explains that Device Authorization Grant facilitates the OIDC protocol for use with Internet of Things (IoT) devices that lack browsers or terminals. This applies to constrained devices without typical interactive interfaces, and it is less relevant for browser-based applications.

A practical way to map OIDC grant types to token needs

  1. Palark begins by separating OIDC flows that involve a user, an identity provider (IdP), and a relying party (RP), as described for Authorization Code Grant.
  2. Palark then distinguishes relying-party-only token needs by using the idea that Client Credentials Grant obtains a token representing the relying party itself rather than a user.
  3. Palark adds a security hardening consideration by treating PKCE (Proof Key for Code Exchange) as an improvement for the authorization code flow to prevent the possibility of security codes being stolen.
  4. Palark accounts for application constraints by mapping single-page applications (SPAs) to Implicit Grant, which involves receiving a token as a GET parameter, and mapping IoT devices that lack browsers or terminals to Device Authorization Grant.

Official article source

Official details and the canonical version are available at: Palark OIDC grants: how to get a token.

Official source →