1
0
mirror of https://github.com/oauth2-proxy/oauth2-proxy.git synced 2025-02-03 13:21:51 +02:00
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
..
2017-03-29 09:36:38 -04:00
2017-03-29 09:36:38 -04:00
2016-06-23 08:43:21 -04:00
2016-02-17 06:19:52 -06:00
2016-02-17 06:19:52 -06:00
2015-11-09 00:47:44 +01:00
2015-11-09 00:47:44 +01:00
2015-11-09 00:47:44 +01:00
2015-11-09 00:47:44 +01:00
2017-09-08 09:32:51 -07:00
2016-01-20 03:57:17 -05:00
2017-09-08 09:32:51 -07:00
2016-06-20 07:45:43 -04:00