mirror of
https://github.com/wso2/open-mcp-auth-proxy.git
synced 2025-10-22 00:13:03 +00:00
Merge 8ca4bb4787
into 017a3f3a13
This commit is contained in:
commit
e83c40fa9d
5 changed files with 17 additions and 66 deletions
|
@ -86,10 +86,17 @@ func (p *defaultProvider) ProtectedResourceMetadataHandler() http.HandlerFunc {
|
|||
w.Header().Set("Content-Type", "application/json")
|
||||
meta := map[string]interface{}{
|
||||
"audience": p.cfg.ProtectedResourceMetadata.Audience,
|
||||
"scopes_supported": p.cfg.ProtectedResourceMetadata.ScopesSupported,
|
||||
"authorization_servers": p.cfg.ProtectedResourceMetadata.AuthorizationServers,
|
||||
}
|
||||
|
||||
if len(p.cfg.ProtectedResourceMetadata.ScopesSupported) > 0 {
|
||||
meta["scopes_supported"] = p.cfg.ProtectedResourceMetadata.ScopesSupported
|
||||
}
|
||||
|
||||
if p.cfg.ProtectedResourceMetadata.ResourceIdentifier != "" {
|
||||
meta["resource"] = p.cfg.ProtectedResourceMetadata.ResourceIdentifier
|
||||
}
|
||||
|
||||
if p.cfg.ProtectedResourceMetadata.JwksURI != "" {
|
||||
meta["jwks_uri"] = p.cfg.ProtectedResourceMetadata.JwksURI
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue