diff --git a/docs/src/apps/mastodon.md b/docs/src/apps/mastodon.md index 8f9dce0c0f1216a85468d3eadc527db5bcf7e945..82774fc9668fef0efdd81c2d3f851467608df4b1 100644 --- a/docs/src/apps/mastodon.md +++ b/docs/src/apps/mastodon.md @@ -4,4 +4,10 @@ Mastodon is the Fediverse software run in the Shivering-Isles infrastructure. It <iframe src="https://www.youtube-nocookie.com/embed/IPSbNdBmWKE" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe> -The instance is currently deployed using a [helm chart](../charts/mastodon.md) maintained as part of the GitOps repository. \ No newline at end of file +The instance is currently deployed using a [helm chart](../charts/mastodon.md) maintained as part of the GitOps repository. + +## SSO Enforcement + +Since Mastodon itself has no configuration to enforce the presence of specific claims or roles, an oauth-proxy setup in front of the `/auth/` section preventing clients from reaching the callback URL for OIDC authentication, without passing through the oauth2-proxy which can enforce the presence of a role. + +While the result in a double redirect to OIDC, once by the oauth2-proxy and once by Mastodon itself, it makes sure that there is proper enforcement of the roles without requiring modification of Mastodon. \ No newline at end of file