mirror of
https://github.com/wso2/open-mcp-auth-proxy.git
synced 2025-08-18 12:19:56 +00:00
Refactor scope validation
This commit is contained in:
parent
5601c7836c
commit
21805b4f0b
7 changed files with 120 additions and 107 deletions
|
@ -106,12 +106,12 @@ type Config struct {
|
|||
Default DefaultConfig `yaml:"default"`
|
||||
|
||||
// Protected resource metadata
|
||||
Audience string `yaml:"audience"`
|
||||
ResourceIdentifier string `yaml:"resource_identifier"`
|
||||
ScopesSupported map[string]string `yaml:"scopes_supported"`
|
||||
AuthorizationServers []string `yaml:"authorization_servers"`
|
||||
JwksURI string `yaml:"jwks_uri,omitempty"`
|
||||
BearerMethodsSupported []string `yaml:"bearer_methods_supported,omitempty"`
|
||||
Audience string `yaml:"audience"`
|
||||
ResourceIdentifier string `yaml:"resource_identifier"`
|
||||
ScopesSupported any `yaml:"scopes_supported"`
|
||||
AuthorizationServers []string `yaml:"authorization_servers"`
|
||||
JwksURI string `yaml:"jwks_uri,omitempty"`
|
||||
BearerMethodsSupported []string `yaml:"bearer_methods_supported,omitempty"`
|
||||
}
|
||||
|
||||
// Validate checks if the config is valid based on transport mode
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue