mariovalney / laravel-keycloak-web-guard

Simple Keycloak Guard to Laravel Web Routes - https://packagist.org/packages/vizir/laravel-keycloak-web-guard
146 stars 80 forks source link

Many redirects after sign-in #9

Closed mariovalney closed 4 years ago

mariovalney commented 4 years ago

Hi,

I'm currently trying to implement the package, but after I login I'm encountering and error. It redirects me too many times. What do you think is the issue?

Thank you for the amazing package!

Originally posted by @rickcwlng-hc in https://github.com/Vizir/laravel-keycloak-web-guard/issues/8#issuecomment-577580915

mariovalney commented 4 years ago

Hi @rickcwlng-hc ! How are you? I created a new issue for you, OK?

Let's go: what version are you using? There was a problem before 1.5.2.

And Keycloak uses session to keep the access_token, check you can store data on session (from request to another).

rickcwlng-hc commented 4 years ago

Thank you for the quick response Mario,

I'm using the latest version. I had a problem when I'm using the local ip address (127.0.0.1:8000). Then I decided to deploy it on our test server which has a domain, then it works fine now.

Will update here if I ever encounter any error in the future.

mariovalney commented 4 years ago

Nice to hear that.

:)