oauth2_proxy/providers
Eric Chiang cb48577ede *: add an OpenID Connect provider
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"
2017-09-08 09:32:51 -07:00
..
azure_test.go gofmt 2017-03-29 09:36:38 -04:00
azure.go gofmt 2017-03-29 09:36:38 -04:00
facebook.go Facebook Authentication Provider 2016-06-23 08:43:21 -04:00
github.go add stripParam and stripToken methods to obfuscate log output 2016-08-02 21:01:44 -06:00
gitlab_test.go Add GitLab provider 2016-02-17 06:19:52 -06:00
gitlab.go Add GitLab provider 2016-02-17 06:19:52 -06:00
google_test.go *: rename Url to URL everywhere 2015-11-09 00:47:44 +01:00
google.go Skip 404 errors when looking up Google groups 2017-03-28 16:06:15 +02:00
internal_util_test.go add stripParam and stripToken methods to obfuscate log output 2016-08-02 21:01:44 -06:00
internal_util.go add stripParam and stripToken methods to obfuscate log output 2016-08-02 21:01:44 -06:00
linkedin_test.go *: rename Url to URL everywhere 2015-11-09 00:47:44 +01:00
linkedin.go *: rename Url to URL everywhere 2015-11-09 00:47:44 +01:00
myusa_test.go *: rename Url to URL everywhere 2015-11-09 00:47:44 +01:00
myusa.go *: rename Url to URL everywhere 2015-11-09 00:47:44 +01:00
oidc.go *: add an OpenID Connect provider 2017-09-08 09:32:51 -07:00
provider_data.go Add Azure Provider 2016-01-20 03:57:17 -05:00
provider_default_test.go SessionState refactoring; improve token renewal and cookie refresh 2015-07-02 23:09:11 -04:00
provider_default.go csrf protection; always set state 2017-03-29 09:31:10 -04:00
providers.go *: add an OpenID Connect provider 2017-09-08 09:32:51 -07:00
session_state_test.go base64 cookie support 2016-06-20 07:45:43 -04:00
session_state.go SessionState refactoring; improve token renewal and cookie refresh 2015-07-02 23:09:11 -04:00