Description
Hi,
Firstly, thanks for this excellent package! It made the whole auth0 setup so much easier and also gave ideas how to use httr
with other authentication services.
Now, I think I have identified, two, if not bugs, then potential enhancements:
-
When using bookmarks, Shiny adds
_state_id_
in the bookmark URL. If we then logout (through thelogout_url
function for example), the logout redirect URI that is created contains_state_id_
. If the user immediately logs back again, the previous bookmark is restored. I am not sure whether this is a desired behaviour. What if another user logs in with other credentials? Maybe I am missing some technical details here, but from my perspective this is not desirable and I implemented a fix by simply reconstructing the redirect URI without_state_id_
in. -
When using the
remote_url
parameter (in_auth0.yml
) for deployment in a remote server and enforcing local is not an option because it would complicate other things (e.g. when using Apachemod_proxy
to avoid displaying the Shiny port), bookmarks are not restored. Again, I 've implemented a fix/addition for this.
I 've forked the package and implemented these fixes/additions. You can review here.
If you think it's ok I could create a PR?
Thanks again.