Skip to content

Public clients do not fetch list of scopes from OP #622

@paulmillar

Description

@paulmillar

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_supported property 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions