Auto login and Auto register users
Hi there!
i have a web app where users have to login with their credentials. I would like to create a button in my web app to redirect users to una.io.
But it must auto log users, users don't have to enter their credentials to be autheticated.
Do you think it's possible with API REST or a little developpment?
Thanks to help me.
-
- · Alchemy
- ·
You will have to use OAuth or similar plug in from marketplace. Una.io should support it (if you are directing your website users to una.io [probably you might be talking about your own una.io based website, so it would be nice to know what's it])
If you are talking about yourwebsite dot com to una dot io login, then its not that easy [But can be done using OAuth or similar plugin].
If you control both website codes / databases, then there is way to do it with little customization.
Anyways, Need more details about your use case to answer it correctly.
-
- · alexandredb
- ·
Thanks for your answer. You describe my situation in your first sentence. I have my website: myapp dot com and i would like to authenticate my users in my own una website.
Right now i don't have my own una webside, i'm benchmarking differents CMS like una. But if you think i can authenticate my users, tha'ts good, can you tell me how please?
-
-
·
Alex T⚜️
- ·
There is API described here:
https://github.com/unaio/una/wiki/Dev-API
But for now there is no API method to add account via API request, however we can add it in the one of upcoming updates if you need this.
-
·
Alex T⚜️
-
- · alexandredb
- ·
Yes it can be great to add this method.
But for now, it's not a problem to add users manually. But how can i autheticate users from my web app, to my una's website?
-
-
·
LeonidS
- ·
Hello alexandredb!
To redirect users safely from you current site to UNA site you need to solve questions which you shown AlexT and Alchemy. Transfer data better to do with solutions like OAuth2. UNA checks login / password with functions from inc/profiles.inc.php like bx_check_login and bx_check_password.
With the best regards, Leonid
-
·
LeonidS
-
- · alexandredb
- ·
Sorry Leonid, i don't understand what you just said. You mean i didn't answer to AlexT and Alchemy?
So i understand that i have to look for a solution with Oauth. You gave me one file to check, i'll see for that.
Thanks.
-
-
·
LeonidS
- ·
Hello alexandredb!
It seemed to me that their answers didn't satisfy you. Sorry i understood you wrong. Will wait your check of mentioned functions.
With the best regards, Leonid
-
·
LeonidS