resolve_scopes
Method
This is a method of the GatewayConfig class in the config module.Resolve the operator scopes granted to
token.
Backward-compatible contract:
- No scope policy configured -> all scopes (today’s behaviour).
- Policy configured + token listed -> that token’s scopes.
- Policy configured + token absent/None -> no scopes (deny).
OperatorScope values without importing them.
Unknown scope names (e.g. typos in gateway.yaml) are dropped and a
warning is logged so misconfiguration surfaces early instead of
silently denying all access.
Signature
Parameters
Optional[str]
required
No description available.
Returns
List[str]
The result of the operation.
Uses
warninglogging.getLogger
Source
View on GitHub
praisonaiagents/gateway/config.py at line 839
