Consent screen

What the onefold consent screen shows your users, when it appears, and when an application can send users straight through without it.

The consent screen is where a signed-in user approves your application's request. It shows what your application asks for, and the user chooses Authorize or Deny.

The consent screen: Acme Notes wants access to your account, listing the requested scopes, with Deny and Authorize buttonsThe consent screen for a request with scope=openid identity.

What it shows

  • your application's name and logo
  • the account the user is signed in with, and a way to switch to another
  • one line for each requested scope; openid and identity share one line
  • for each required social connection, the provider and what it shares, in that provider's own words
  • who registered the application
  • the host the user will be returned to, taken from the redirect URI
  • the Project URL you entered for the application, if any

The user approves or declines the request as a whole.

The user choosesYour callback receives
Authorizecode, state and iss
Denyerror=access_denied, state and iss

When it appears

By default, on every authorization, including for a user who approved the same scopes before.

No parameter in the authorization request can skip the screen. onefold decides, on each request, from your application's settings.

Skipping the screen

An application can send users from sign-in straight to its callback, with no consent screen. Two things are needed:

  1. a plan that includes it (consent_skip_enabled), and
  2. the Send users straight in switch, under The consent screen on the application's OAuth2 tab.

That includes a user's first sign-in to your application and a request for more scopes than they approved before: the authorization approves what it asks for.

With the screen skipped, everything else is unchanged: the grant is recorded, the user sees your application in their authorized applications and can remove it, and the same webhook events are sent.

The screen still shows when the request needs a provider connection (socials:<provider>) whose provider data has ended, for example after a block is lifted or after the user disconnected that provider. The screen is where they connect it again, so a request with prompt=none receives consent_required instead.

If your plan stops including the feature, the consent screen returns on the next sign-in.

After your application moves to another organization, each person sees the screen once, at their next authorization. With the screen skipped, nobody sees it: the authorization approves itself. Their tokens keep working either way.

What you cannot change

  • The consent screen always uses the Simple layout, whatever layout your sign-in page uses.
  • The onefold mark always shows on the consent screen.
  • The wording of each scope line is fixed.

Two things can add a step between the consent screen and your callback:

Your callback receives the same response either way.

On this page