Conversation
|
Hi @emirisman
|
|
The i18n should be "OpenID Connect provider" @emirisman |
|
Hello @eladeyal-intel - thank you for your feedback! I'll look into build the redirect URI from the given environment. I have added Regarding the translation: Currently, I am receiving the following message upon login: I've tried adding the following line which did not work (causes a 500 error upon login): I am expecting |
|
@eladeyal-intel I ended up using this url_for method to build the redirect URI which seems to be working also in absence of the |
|
@emirisman - the |
|
I created a free okta account with a single user for tests. I can login to it using @emirisman LOGIN='[email protected]' |
|
@eladeyal-intel the test I've created fails with following: The request seems to be initiated though: Your LDAP test does not seem to have a setup phase yet it proceeds without such errors - do you have an idea? |
|
I have an idea. the capybara default driver (:rack_test) does not support running against a remote server. You will see in log/test.log a GET to /auth which should go to a remote site. If you add js: true to the test definition# then it will use phantomjs instead of rack_test and phantomjs is able to visit other sites. |
|
@emirisman you can run the test locally in your pc rails test test/features/openid_connect_test.rb |
|
@eladeyal-intel I am trying to run the test with Poltergeist and did manage to actually get to the Okta login but I am receiving the following error: Looks like we have to adjust some settings in Okta: https://developer.okta.com/docs/guides/enable-cors/overview/ |
|
@emirisman pls try again. I added some CORSs. If it still fails - I think I need to know the server that poltergeist is pretending to be. Perhaps you can set it to |
|
I cannot replicate this (nor make it work) on my PC. try setting the poltergeist option |
|
Still does not work. |
|
@emirisman I thought setting the poltergeist option |
|
@eladeyal-intel It looks like the problem is Okta's automatic bot detection: However if I run the same test again it does not continue to the callback phase and simply fails at the login page |
|
I'm not sure this is the cause of the problem. |
a0558c0 to
46c42ac
Compare
|
@eladeyal-intel I rebased and pushed my changes - I can locally run the current HEAD such that it makes it to the callback phase every time |
|
I can't get this to work in CI. Maybe it is anti-bot stuff. OpenID Connect integration does work for me (without CI). Maybe @emirisman should remove the failing CI, squelnch all the commits to a single commit, and wait for repository devs to decide if they want to import it. |
|
I can also confirm that the OpenID Connect support works for me. @eladeyal-intel I will move the test commits to another branch and start a separate PR for it - the integration itself already works and IMHO can be merged |
|
I have squashed to commits and will move the tests to a separate branch |
|
This might also close #20 |
|
Hi @emirisman - take a look at https://github.com/nov/openid_connect_sample - they have a live example in on Heroku: https://connect-op.herokuapp.com - maybe this would be a good testbed |
|
Hi @emirisman In the file to In some setup I've seen this overflowing the session store. |
|
Hello @eladeyal-intel - I made the change to |
|
I was not able to add automated tests for this. I have to setup for testing this. |

Adds generic OpenID Connect support for any system supporting it, e.g. Keycloak