Skip to content
Customer IdentityMarkdown

Remember what users allowed

Ask a user once per app, not at every sign-in, see what the realm remembers, or turn remembering off so every sign-in asks.

APIRFC 6749, OpenID Connect Core 1.0

A user who allowed an app isn’t asked again each time they sign in to it. The realm keeps one record per user and app, listing everything they allowed, and widens it when the app asks for more. Remembering is on by default; this guide is for the realm administrator who wants to see those records, or to ask every time instead.

Before you start: you hold RealmOwner in the realm (RealmViewer is enough to read the records), with your session in $CVYUH_SESSION (see Call the API).

The app asks for…Asked?
the same as before, or lessNo
a scope they haven’t allowedYes, and the record widens
offline_accessAlways
anything, with prompt=consentAlways
authorization_detailsAlways: only scopes are remembered
anything, from a public app at a loopback or custom-scheme addressAlways
  1. Read the records the realm keeps now, so you know what will stop being remembered:

    Terminal window
    curl https://foobar.cvyuh.com/api/v0/am/objects/v1/oauth2Consent \
    -H "Cookie: x-cvyuh-token=$CVYUH_SESSION"
  2. Stop remembering consent in the realm:

    Terminal window
    curl -X PATCH https://foobar.cvyuh.com/api/v0/am/objects/v1/oauth2Settings/oauth2Settings \
    -H "Cookie: x-cvyuh-token=$CVYUH_SESSION" \
    -H "Content-Type: application/json" \
    -d '{ "rememberConsent": false }'

    From the next sign-in, every app asks every user.

List the realm’s consent records again, on /objects/v1/oauth2Consent. Each is an oauth2Consent object naming the user, the app and the scopes allowed, with when they were first and last given. With remembering on, a user’s sign-in to an app they allowed before shows no consent page; with it off, every sign-in does.

Send { "rememberConsent": true } to remember again.