-
Notifications
You must be signed in to change notification settings - Fork 26
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
Wordpress connection #58
Comments
If the website and the app share the same Firebase project they will only have to login once, in either place. That's one of the features of firebase. |
website and app sharing same Firebase project and I created config file following this way:
|
But what is the problem exactly? |
In my wordpress website, when user logged in, can see the "Application" button. When clicked on the button, user see another page and there is Shiny app but should login one more time. Do i need to handle this problem on wordpress side? Or can I generate a token when the user clicks this button and capture it using the Shiny firebase package? Sorry if I'm asking a weird question, I'm very new to this wordpress and firebase stuff :/ |
Firebase (and most auth services) will keep you signed in only on the same domain. |
mysite.com -> app.mysite.com I'm following this but I hosted my app on app.fly.io with a docker container and directed to app.mysite.com I guess problem is here. I thought this solution, when user click on the button it will create a token and save it in a database and redirect user with a app.myiste.com/?user_email=user@email&token=$token then Shiny app firstly control the database if user and token matched won't show firebase ui. |
That's strange it should work, not sure how the app is hosted is it on your actual domain or does it redirect? |
I'm using fly.io server, I dockerized my app and hosted as myapp.fly.io and redirect to myapp.mysite.com |
Make sure you have authorised the domain on firebase console maybe |
I authorised, I can login when I type my mail and password at myapp.mysite.com. I don't how how actually it's work but is it possible to getting a login token from Firebase? and is the package allows getting that tokens before app start? WP Sending Firebase Token to myapp.mysite.com with a query -> app observering token if token exist allows user. |
Hi there,
I'm using firebase on my website. I have a button to redirect user to my shinyapp.
My problem is, user should login two time, 1. in website, 2. in app.
I wonder that is there any way to user login ones?
Thank you!
The text was updated successfully, but these errors were encountered: