OpenID Connect Metadata document doesn't reflect app-specific scopes? #1689
-
I read a bit on OpenID Connect Metadata endpoint here: I was trying to configure Swagger locally to rely on the discovery endpoint, however there doesn't seem to be a way to get Application-defined scopes with this mechanism. No matter how I call the endpoint (say, even if I pass the "scopes_supported": [
"openid",
"profile",
"email",
"offline_access"
], This information is basically useless to the client. Instead of returning these default scopes, I wanted it to return my API scope, Is it not possible to access the Azure AD OpenID Connect Metadata endpoint for this purpose? Every example I see of this mechanism on the internet lists the specific scopes supported for the given application. Do I need to call the endpoint using different parameters to obtain info on a specific application? The URL I'm using currently is: |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 5 replies
-
Hey @julealgon - thanks for the question. Going to investigate this and get back to you. |
Beta Was this translation helpful? Give feedback.
-
We don't support this. The OIDC metadata endpoint just returns Azure AD's STS metadata. There's no concept of custom resources or custom scopes here. Since there's only one OIDC provider in this context (Azure AD), this means that regardless of what The reason passing an |
Beta Was this translation helpful? Give feedback.
-
It would be great if the use of custom scopes could be added. As you can see in the below link, Auth0 simply supports this. OpenID is rather useless without it, I feel. @nickludwig : is this up for reconsideration 2 years later? |
Beta Was this translation helpful? Give feedback.
We don't support this. The OIDC metadata endpoint just returns Azure AD's STS metadata. There's no concept of custom resources or custom scopes here. Since there's only one OIDC provider in this context (Azure AD), this means that regardless of what
appid
you pass as a parameter in the request to the metadata endpoint thesupported_scopes
will always be the same.The reason passing an
appid
parameter (mind you, this is a non-standard extension) is supported is so custom signing keys can be discovered. So, the value ofjwks_uri
that's returned by the OIDC metadata endpoint is the only thing that can change based on whatappid
is passed as a parameter.