1
0
mirror of https://github.com/oauth2-proxy/oauth2-proxy.git synced 2025-12-19 23:52:17 +02:00
Files
oauth2-proxy/docs/versioned_docs/version-7.13.x/configuration/providers/sourcehut.md
github-actions[bot] 082b49aaeb release: v7.13.0 (#3251)
* add new docs version 7.13.x

* update to release version v7.13.0

* doc: add release notes v7.13.0

Signed-off-by: Jan Larwig <jan@larwig.com>

---------

Signed-off-by: Jan Larwig <jan@larwig.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Jan Larwig <jan@larwig.com>
2025-11-08 14:29:37 +01:00

797 B

id, title
id title
sourcehut SourceHut
  1. Create a new OAuth client: https://meta.sr.ht/oauth2
  2. Under Redirection URI enter the correct URL, i.e. https://internal.yourcompany.com/oauth2/callback

To use the provider, start with --provider=sourcehut.

If you are hosting your own SourceHut instance, make sure you set the following to the appropriate URLs:

    --login-url="https://<meta.your.instance>/oauth2/authorize"
    --redeem-url="https://<meta.your.instance>/oauth2/access-token"
    --profile-url="https://<meta.your.instance>/query"
    --validate-url="https://<meta.your.instance>/profile"

The default configuration allows everyone with an account to authenticate. Restricting access is currently only supported by email.