Skip to content
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

Problems using GitLab as OAuth2 provider #1

Closed
ocaisa opened this issue Jul 25, 2016 · 4 comments
Closed

Problems using GitLab as OAuth2 provider #1

ocaisa opened this issue Jul 25, 2016 · 4 comments

Comments

@ocaisa
Copy link

ocaisa commented Jul 25, 2016

Hi,

I tried to use this to have our Etherpad instance authenticate against our GitLab server but it gave me a "too many redirects" error. Does my configuration make sense?

"users": {
  "oauth2": {
    "authorizationURL": "http://gitlab.myserver.eu/oauth/authorize",
    "tokenURL": "http://gitlab.myserver.eu/oauth/token",
    "clientID": "CLIENT_ID",
    "clientSecret": "CLIENT_SECRET",
    "publicURL": "http://etherpad.myserver.eu",
    "userinfoURL": "http://gitlab.myserver.eu/api/v3/user",
    "usernameKey": "name",
    "useridKey": "email"
  }
}

publicURL should be the etherpad, right?

Thanks,

Alan

@oliamb
Copy link
Contributor

oliamb commented Aug 8, 2016

Back from holidays. I can reproduce your issue. The reason is that you are authenticated but not authorised to access the admin page anyway.

For an unknown reason, a 403 redirect you to the login again instead of displaying an error page. I will think of a solution to it. I think a 401 should redirect you to the login process but 403 errors should be final. But it seems that Etherpad only retrieve 403 error...

At this point, I use this plugin with a custom authorize plugin so I did not face this case.

@ToniIltanen
Copy link

Is there any solution for this? Im facing the same issue (against a custom openid provider, which works as it should). How did you make your authorize plugin, is there any info on that?

@oliamb
Copy link
Contributor

oliamb commented Jan 24, 2017

The authorization plugin is very specific to the HumanBrainProject org, you can find it here: https://github.com/HumanBrainProject/ep_hbp_collaboratory

@oliamb
Copy link
Contributor

oliamb commented Jan 24, 2017

Fixed in v0.1.4

@oliamb oliamb closed this as completed Jan 24, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants