Skip to content
Customer IdentityMarkdown

Authorized apps

Each customer sees every app they allowed, with what it may do, and removes any of them, ending everything it holds for them at once.

AvailableDashboard and APIRFC 7009

Every app a customer allowed is on their Authorized Apps page: its name, what they allowed it, when, and whether it may act while they’re away. One choice of Revoke takes it back: the app’s tokens for that customer stop working at once, and the next time it asks, the customer sees the consent page again.

  • Privilege: none. Customers list and remove their own apps with their own session. Removing an app for every customer needs RealmOwner in the realm.
  • Where: the dashboard’s Authorized Apps page, or the API.
  • An app the customer allowed on the consent page.

The list comes from the realm’s consent records, one per customer and app. Each entry carries:

FieldWhat it holds
clientIdThe app’s client ID
clientNameThe name the consent page shows, when the app has one
scopesWhat the customer allowed it
firstGranted, lastGrantedWhen they first allowed it, and when they last did
offlineWhether it may act while they’re away (offline_access), which removing it also ends

Removing an app ends:

  • every token at once: its access tokens and refresh tokens for this customer stop working at the realm, at introspection and at every gateway;
  • the consent record: the next time the app asks, the customer is asked again. If they allow it then, the app’s new tokens work at once.

There’s nothing to set up: the page is in the dashboard for every user. Through the API, with the customer’s own session in $CVYUH_SESSION (see Call the API):

Terminal window
curl https://foobar.cvyuh.com/api/v0/am/me/v1/oauth2/apps \
-H "Cookie: x-cvyuh-token=$CVYUH_SESSION"
[
{ "clientId": "example-app", "clientName": "Example App", "scopes": ["openid", "profile", "email"],
"firstGranted": "<RFC 3339 time>", "lastGranted": "<RFC 3339 time>", "offline": false }
]

Remove one:

Terminal window
curl -X DELETE https://foobar.cvyuh.com/api/v0/am/me/v1/oauth2/apps/example-app \
-H "Cookie: x-cvyuh-token=$CVYUH_SESSION"

The realm answers 204, or 404 if the customer never allowed that app.

Each app by its name, what they allowed it, when they first and last allowed it, and whether it may act while they’re away, with a Revoke button. After Revoke, the app leaves the list, and the app itself finds its tokens refused and must send the customer to sign in again, where the consent page asks afresh.

AnswerWhyWhat to do
204The app was taken backNothing
404The customer never allowed that app, or already took it backNothing to take back
401No session, or a session of another realmSign in to the customer realm first
  • One entry per app, however many times the customer allowed it.
  • No paging: the list holds every app the customer allowed.
SymptomCauseFix
An app allowed a few seconds ago is missingThe list can lag by a momentWait and reload. The realm still remembers the app, so the customer isn’t asked again
An app keeps working after RevokeAn API checks the app’s access tokens on its own, without introspectionHave the API introspect, or keep access tokens short; the realm already refuses them
A customer wants an app gone and can’t sign inThey need a session to use the pageA realm administrator can remove the consent record for them; see Let users remove apps they allowed

Each Revoke writes an APP_TAKEN_BACK record on the customer’s audit trail, naming the app.

  • Only their own. These calls act on the signed-in customer’s apps, never another’s.
  • To stop an app for every customer, a realm administrator deactivates its client instead; see Let users remove apps they allowed.