Comments (8)
I think it's due to specifying `--http-address="127.0.0.1:4180".
This works for me:
docker run -p 4180:4180 quay.io/pusher/oauth2_proxy:v3.1.0 \
--cookie-secure=false \
--upstream="file:///dev/null" \
--http-address="0.0.0.0:4180" \
--redirect-url="http://internal.website.com/oauth2/callback" \
--cookie-secret=changeme \
--client-id=changeme \
--client-secret=changeme \
--email-domain=*
from oauth2-proxy.
I also meet this problem. I can use pre-release binary to run the proxy. But I meet issue #56 , thus, I try to use docker image
env: CentOs 6.10, Docker version 1.7.1
docker run --name oauth -p 4180:4180 -d quay.io/pusher/oauth2_proxy -provider oidc -client-id changeit -client-secret changeit -redirect-url https://myhost.example.com/oauth2/callback -oidc-issuer-url https://GITLAB -cookie-secret changeit -email-domain * -basic-auth-password changeit -pass-basic-auth true -upstream http://127.0.0.1:8000/ -http-address "0.0.0.0:4180" -cookie-name example.com -cookie-doamin example.com --cookie-secure true
from oauth2-proxy.
-P
won't work, for a couple reasons:
- there are no EXPOSE directives in the dockerfile
-P
uses random ports, not matching ports
so replace -P
with -p 4180:4180
or alternatively with --net=host
from oauth2-proxy.
Ah that makes sense. After adding that port mapping I'm now getting:
curl: (52) Empty reply from server
from oauth2-proxy.
look at container logs. it's not running because you're missing the --email-domain=...
option
from oauth2-proxy.
I have used --email-domain option and logs don't show anything after 2019/02/28 05:29:33 http.go:52: HTTP: listening on 127.0.0.1:4180
Is there a debug option for more verbose logging?
from oauth2-proxy.
If curl is still getting "empty reply from server" then you're just dealing with docker and OS complications now. It may be easier to get started with the stand-alone binary you can download from the releases page.
from oauth2-proxy.
Closing as it looks like this was a docker/config misconfiguration and has now been resolved.
from oauth2-proxy.
Related Issues (20)
- [Feature]: options for add files in /oauth2/static/ HOT 4
- [Feature]: Guides for rauthy and/or authelia
- [Bug]: Unable to use hyphen in JSON path for oidc-groups-claim option
- [Bug]: Invalid authentication via OAuth2 via Github for the owner of the organisation HOT 8
- [Bug]: Possible typo in source code for static upstreams HOT 2
- [Bug]: Incomplete source of request urls for skip_auth_routes feature
- [Bug]: Redirect after second google login to home page not working
- [Support]: 401 Authorization Required even finished authentication HOT 1
- [Feature]: use username (or any other attribute from the provider) in basic auth header instead of the ID
- [Feature]: JWT validation only mode HOT 8
- [Bug]: An invalid redirect to a non-whitelisted domain creates a valid session cookie after redirecting to "/"
- Pass bearer token to the backend with nginx
- [Support]: Multi-Domain Forward-Auth with Traefik/k3s
- [Feature]: [Azure] Support certificate-based flow for requesting access token HOT 1
- [Feature]: Support for dry-run
- [Support]: failed to verify id token signature
- [Bug]: Setting `proxy-prefix` in helm seems to break login
- [Bug]: Azure provider: problem with ProfileURL/ userInfoURL (duplicate of closed issue #2162 )
- [Support]: <Keycloak-OIDC failed>
- [Bug]: GitHub private repo check throwing 500 instead of 403 when user does not have access
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from oauth2-proxy.