-
Notifications
You must be signed in to change notification settings - Fork 326
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
get oauth2 401 Unauthorized in Github Enterprse 2.13 #22
Comments
It looks like the client ID or secret is missing. Double check that the client ID and secret are set in the config file. The example config file is a bit confusing as it has several examples of OAuth providers in it but you need just the one you're using, so make sure the others are commented out. |
thanks, you are right, my token url was wrong. Now, I am getting I am guessing https://github.com/LassoProject/lasso/blob/abe5646e267dd8859aa749e46ccc334044a2dad9/handlers/handlers.go#L498 always call github.com instead of github enterprise? |
Looks like yep, we'll need to add a config option to set the GitHub enterprise API URL. |
Tried with
and it seems works. But I was getting another issue which is that it repeated redirect and ask for token. My config as follows:
|
lasso runs on the same node with 9091 port and can be public assessed using http://mydomain.name:9091 |
Do you have the cookie config set to You may need to set that to Lasso is generally assumed to be running behind a reverse proxy which provides https, at least for the publicly accessible endpoint Your nginx config looks correct otherwise. You could also see if adding |
Found the root cause: |
aha! But it works otherwise if the email is published? Would you suggest using the username instead of email for github (and github enterprise) accounts? |
yeah. maybe username is better. |
k thanks, I'm going to keep this issue open to track the addition of a config option to set the GitHub enterprise API URL I'll establish a new issue for the change from |
@QingsongYao would you be able to sanity check this... Overall it should be much simpler now to configure Lasso for GitHub Enterprise |
Yes. Verified that the new config works with latest docker and config. My userinfo url is something like |
That's great, thanks for checking.
…On Thu, Sep 20, 2018, 2:21 PM Qingsong Yao ***@***.***> wrote:
lasso runs on the same node with 9091 port and can be public assessed
using http://mydomain.name:9091
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#22 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABNK68G2FHFpRZIBoVkSakoKtEzJZEPnks5udAbzgaJpZM4WxmXP>
.
|
In https://developer.github.com/enterprise/2.13/v3/oauth_authorizations/#more-info, I saw the token field is deprecated, not sure whether it has impact on this.
Logs
The text was updated successfully, but these errors were encountered: