gotosocial/internal/api/auth
Daenney 9cfb69f75d
[feature] Make OIDC admin groups configurable (#1555)
This removes the current default of checking for membership of the admin
or admins group and makes it required to explicitly configure which
groups should grant admin access, if any.

Relying on the implicit default of admin or admins is potentially
dangerous as that group may contain a different subset of people that we
may wish to grant admin access to GtS. This is probably not an issue for
a single-person instance, but for a community instance different admin
groups may exist in an OIDC provider for different applications.

I'm explicitly opting for not defaulting the value of oidc-admin-groups
to admin,admins because I think it's better for those things to be
explicitly configured.
2023-02-25 16:37:39 +00:00
..
auth.go [chore] Deinterface processor and subprocessors (#1501) 2023-02-22 16:05:26 +01:00
auth_test.go [chore] Deinterface processor and subprocessors (#1501) 2023-02-22 16:05:26 +01:00
authorize.go [feature] Implement /api/v2/instance endpoint (#1409) 2023-02-02 14:08:13 +01:00
authorize_test.go [chore] The Big Middleware and API Refactor (tm) (#1250) 2023-01-02 12:10:50 +00:00
callback.go [feature] Make OIDC admin groups configurable (#1555) 2023-02-25 16:37:39 +00:00
oob.go [feature] Implement /api/v2/instance endpoint (#1409) 2023-02-02 14:08:13 +01:00
signin.go [feature] Implement /api/v2/instance endpoint (#1409) 2023-02-02 14:08:13 +01:00
token.go [feature] Implement /api/v2/instance endpoint (#1409) 2023-02-02 14:08:13 +01:00
token_test.go [chore] Update/add license headers for 2023 (#1304) 2023-01-05 12:43:00 +01:00