-
Notifications
You must be signed in to change notification settings - Fork 34
Open
Labels
Description
oidc-agent supports and is shipped with a list of public clients as the configuration file /etc/oidc-agent/pubclients.config.
This file supports configuring a list of scopes for the public client, but including the list of scopes is optional.
The behaviour of oidc-gen is not documented if a public client is selected that does not have a list of scopes and --scope=max is used. Observation suggests that a default set of scopes is used.
There are two problems:
- the lack of documentation
- the (apparent) lack of support for discovery; i.e., the
scopes_supportedproperty of the OIDC discovery document.
My suggestion would be to update code to use the service discovery endpoint to learn the supported scopes and use this, falling back to a default set of scopes if that information is not available.