Skip to content

[Feature Request] Make issuer validation in OIDC authority optional #5507

@lilinus

Description

@lilinus

MSAL client type

Confidential

Problem statement

Since the change #5358 I am unable to connect to a provider where the issuer property in the .well-known/openid-configuration file doesn't comply with the specification.

It would be handy if the new validation was opt-out, so we could still use the provider with MSAL for .NET.

Proposed solution

Add a flag to opt-out of the issuer validation, perhaps like:

namespace Microsoft.Identity.;
public class ConfidentialClientApplicationBuilder
{
    public Microsoft.Identity.Client.ConfidentialClientApplicationBuilder WithOidcAuthority(string authorityUri, bool validateIssuer);
}

Alternatives

In my case, I use client credentials. So an alternative for me would be to just write code that fetches, caches and refreshes the token myself.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions