Rukenshia / ueberauth_keycloak

Ueberauth Strategy for Keycloak / RH-SSO
Other
12 stars 15 forks source link

Renewing tokens #9

Open chintan-mishra opened 1 year ago

chintan-mishra commented 1 year ago

How to renew token obtained from Keycloak using ueberauth_keycloak?

Rukenshia commented 1 year ago

Sadly I haven't been using Elixir (and ueberauth with keycloak) in a while, so I'm not really sure. I looked things up in the ueberauth repo and found an issue from 2017 which basically states your app should schedule and refresh a session - https://github.com/ueberauth/ueberauth/issues/37.

The refresh token is currently not stored, but there was a PR (which was closed immediately by the author) in #4 . You could pick this up again and try to implement it - I am happy to accept PRs, but I am unfortunately not in a position right now to implement this myself.

Alternatively what I could think of is redirecting the user back to the log in after a scheduled time, but this might not be the best user experience.