-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Conversation
If you want to authenticate with Github instead of Google you need to use |
Now i get the github page after i say authorise it gives 500 with following cannot unmarshal object into Go value of type []struct { Email string i know i am asking way too much things trust me i am unable to configure On Sun, May 31, 2015 at 9:39 AM, Jehiah Czebotar notifications@github.com
Regards |
You might need to pass the domain / email list so it can authenticate against those. |
--authenticated-emails used the above still the error persist Please help me in getting this done |
Guys need your help in this You might need to pass the domain / email list so it can authenticate — |
I tried giving the email name in the list with env --authenticated-emails, it still gives same error currently we have a github organization and more or less all are using gmail.com email address, would appreciate any help on this |
Now when i introduced the github-org parameter the error changed json: cannot unmarshal object into Go value of type []struct { Name string "json:"name""; Slug string "json:"slug""; Org struct { Login string "json:"login"" } "json:"organization"" } i am using the following ./oauth2_proxy --provider=github --upstream=https://ec2-52-25-160-240.us-west-2.compute.amazonaws.com --cookie-secret=secret --github-org='_' --cookie-secure=true --client-id=_* --client-secret=****** & unable to figure out any way to get this running desperately need help here |
Guys, Please help me in this would appreciate some inputs |
@dbiswas1 You seem to be getting an unexpected response from the GitHub API. Can you post the full log line you got? you only pasted part of the log entry so it's hard to understand the context. |
c76ba64
to
f5db2e1
Compare
@dbiswas1 I've added some more specific logging around failed requests to the provider (github in your case). Please build a new version of |
Thanks a lot, i will try this and inform you i am trying to implement this Thx On Mon, Jun 8, 2015 at 6:37 AM, Jehiah Czebotar notifications@github.com
Regards |
Now i have a weird error, not sure how will i make this work i checked form the browser with the credentials and i am authorized but it fails here Thx |
Can you please reopen this, so that i can get some help i am trying from longtime to setup oAuth2 |
Hi,
Thanks for solving the previous request as i said i am very new to GO, my aim is to have Nginx authenticate via github
as of now i have nginx serving only the default home page, have enabled self signed certificate to test the authentication
my nginx config is as follows
server {
listen 80 default_server;
listen [::]:80 default_server ipv6only=on;
listen 443 ssl;
and Oauth_proxy is running as follows: ./oauth2_proxy --upstream=https://127.0.0.1 --cookie-secret=secret --cookie-secure=true --client-id=2*********3 --client-secret=Aef**********a
my page always greets me with login with google account and also gives 404 after that
i want to start using the github credentials for logging please help, this is very critical
my call back url is
https://ec2-52-25-160-240.us-west-2.compute.amazonaws.com/oauth2/callback