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

Oauth with KeyCloak #820

Closed
esgn opened this issue Nov 13, 2019 · 2 comments
Closed

Oauth with KeyCloak #820

esgn opened this issue Nov 13, 2019 · 2 comments

Comments

@esgn
Copy link
Contributor

esgn commented Nov 13, 2019

Hello all,

I'm trying to use fider with an existing user database stored in a LDAP. Fider supports custom oauth, so I'm trying to put a keycloak instance on top of my ldap. Has anyone ever tried fider+keycloak ? Cannot get it to work yet. Found the client secret in keycloak client credentials but this does not seem to solve the problem.

Thanks for any help/advice

@esgn
Copy link
Contributor Author

esgn commented Nov 14, 2019

Made it. Trouble was linked to domain names / ip discrepancies on my local network.

For the record, here what was required to make fider work with KeyCloak :

Will try with https and tls certificates soon but all in all this solution works in order to use an pre-existing LDAP.

@vuongpd95
Copy link

vuongpd95 commented Jul 10, 2024

For people who is gonna stumble here in the future.

I was trying to setup keycloak 25.0 with fider using docker-compose locally & to make it works, I needed to change a few things from esgn configs

  • Authorize URL: http://127.0.0.1:8080/realms/{realm-name}/protocol/openid-connect/auth
  • Token URL: http://127.0.0.1:8080/realms/{realm-name}/protocol/openid-connect/token
  • Scope: I put profile openid email
  • Profile API URL: http://127.0.0.1:8080/realms/{realm-name}/protocol/openid-connect/userinfo
  • JSON Path, same as esgn

You can actually get the above urls by going to

http://127.0.0.1:8082/realms/{realm-name}/.well-known/openid-configuration

Do note here is 127.0.0.1 instead of localhost because when I used localhost, I received this error in fider logs.

dial tcp [::1]:8082: connect: connection refused 

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

2 participants