Skip to content

Issuer URL check broken #226

@m-lima

Description

@m-lima

On

if provider_metadata.issuer() != issuer_url {
the issuer URL is checked agains the response from the discovery document. However this check is maybe too naïve and fails do to final slash.

How to reproduce

    let issuer = openidconnect::url::Url::parse("https://accounts.google.com")?;
    let metadata = openidconnect::core::CoreProviderMetadata::discover(
        &openidconnect::IssuerUrl::from_url(issuer),
        &client,
    )?;

This will cause the following error:

Validation("unexpected issuer URI `https://accounts.google.com` (expected `https://accounts.google.com/`)")

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions