Skip to content

OpenID Provider Metadata is not valid #5

@ahukkanen

Description

@ahukkanen

The OpenID provider metadata that is generated here is not valid:

data = {
"issuer": app_config.ISSUER,
"jwks_uri": jwks_uri,
}

This is a problem for connecting libraries that validate that the returned metadata is correct as defined by the specification.

As per the specification, the following metadata values are marked as REQUIRED:

  • issuer - OK
  • authorization_endpoint - MISSING
  • jwks_uri - OK
  • response_types_supported - MISSING
  • subject_types_supported - MISSING
  • id_token_signing_alg_values_supported - MISSING

The following data definition (for example) would return valid metadata:

    data = {
        "issuer": app_config.ISSUER,
        "authorization_endpoint": f"{app_config.ISSUER}/auth",
        "jwks_uri": jwks_uri,
        "response_types_supported": ["id_token"],
        "subject_types_supported": ["public", "pairwise"],
        "id_token_signing_alg_values_supported": ["RS256"],
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions