cb48577ede
See the README for usage with Dex or any other OIDC provider. To test run a backend: python3 -m http.server Run dex and modify the example config with the proxy callback: go get github.com/coreos/dex/cmd/dex cd $GOPATH/src/github.com/coreos/dex sed -i.bak \ 's|http://127.0.0.1:5555/callback|http://127.0.0.1:5555/oauth2/callback|g' \ examples/config-dev.yaml make ./bin/dex serve examples/config-dev.yaml Then run the oauth2_proxy oauth2_proxy \ --oidc-issuer-url http://127.0.0.1:5556/dex \ --upstream http://localhost:8000 \ --client-id example-app \ --client-secret ZXhhbXBsZS1hcHAtc2VjcmV0 \ --cookie-secret foo \ --email-domain '*' \ --http-address http://127.0.0.1:5555 \ --redirect-url http://127.0.0.1:5555/oauth2/callback \ --cookie-secure=false Login with the username/password "admin@example.com:password" |
||
---|---|---|
.. | ||
azure_test.go | ||
azure.go | ||
facebook.go | ||
github.go | ||
gitlab_test.go | ||
gitlab.go | ||
google_test.go | ||
google.go | ||
internal_util_test.go | ||
internal_util.go | ||
linkedin_test.go | ||
linkedin.go | ||
myusa_test.go | ||
myusa.go | ||
oidc.go | ||
provider_data.go | ||
provider_default_test.go | ||
provider_default.go | ||
providers.go | ||
session_state_test.go | ||
session_state.go |