You've already forked oauth2-proxy
mirror of
https://github.com/oauth2-proxy/oauth2-proxy.git
synced 2025-07-15 01:44:22 +02:00
fix gitea token validation by allowing custom validation url and extracting the proper base api url for github cloud, github enterprise and gitea (#2194)
This commit is contained in:
19
contrib/local-environment/oauth2-proxy-gitea.cfg
Normal file
19
contrib/local-environment/oauth2-proxy-gitea.cfg
Normal file
@ -0,0 +1,19 @@
|
||||
http_address="0.0.0.0:4180"
|
||||
cookie_secret="OQINaROshtE9TcZkNAm-5Zs2Pv3xaWytBmc5W7sPX7w="
|
||||
email_domains=["localhost"]
|
||||
cookie_secure="false"
|
||||
upstreams="http://httpbin"
|
||||
cookie_domains=[".localtest.me"] # Required so cookie can be read on all subdomains.
|
||||
whitelist_domains=[".localtest.me"] # Required to allow redirection back to original requested target.
|
||||
|
||||
client_id="ef0c2b91-2e38-4fa8-908d-067a35dbb71c"
|
||||
client_secret="gto_qdppomn2p26su5x46tyixj7bcny5m5er2s67xhrponq2qtp66f3a"
|
||||
redirect_url="http://oauth2-proxy.localtest.me:4180/oauth2/callback"
|
||||
|
||||
# gitea provider
|
||||
provider="github"
|
||||
provider_display_name="Gitea"
|
||||
login_url="http://gitea.localtest.me:3000/login/oauth/authorize"
|
||||
redeem_url="http://gitea.localtest.me:3000/login/oauth/access_token"
|
||||
validate_url="http://gitea.localtest.me:3000/api/v1/user/emails"
|
||||
|
Reference in New Issue
Block a user