adk_scope_authorizer (erlang_adk v0.7.0)
View SourceDefault-deny OIDC scope authorizer for production ADK gateways.
The principal is re-derived from issuer and subject using the same binding as adk_jwt_policy. This makes a malformed or accidentally hand-built identity fail closed before it can select a user/session scope.
Summary
Functions
-spec authorize(map(), adk_authorizer:identity(), adk_authorizer:action(), adk_authorizer:resource()) -> {ok, adk_authorizer:decision()} | {error, unauthenticated | forbidden}.