matrix-org / matrix-authentication-service

OAuth2.0 + OpenID Provider for Matrix Homeservers

Home Page:https://matrix-org.github.io/matrix-authentication-service/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Document the default policy behaviour around admin scopes

sandhose opened this issue · comments

The default policy is not documented at all, but it is especially tricky to understand how admin scopes (urn:synapse:admin:* and urn:mas:admin) interact with it. This needs to be documented

A few informations to include, in a very brain-dumpy format:

I tried to configure a user via policy.data.admin_users as admin.

The user gets always the normal user claims:
Introspection result: {'active': True, 'scope': 'urn:matrix:org.matrix.msc2967.client:api:* urn:matrix:org.matrix.msc2967.client:device:l1qiNGItBF', 'client_id': 'legacy'

Do I understand correctly that the admin claim must be explicitly requested? And does this also work via legacy OIDC login?
_matrix/client/r0/login/sso/redirect?redirectUrl=https%3A%2F%2F...