Welcome Guest, Not a member yet? Register   Sign In
Concept of OAuth login - Step after the access token

Hello Lovely CI Community,

I studied how OAuth (Facebook/google login) works in order to implement it in my project but i don't really get how it can exist beside classic method for a membership area.

Imagine this forum for example, you create an account with a classic register form, the system will create an entry for you in the DB with your login/password.
The entry can contain all your preferences and be linked to other datas. It will check the login/password each time you want to connect.

But in the case of OAuth, how it works ? Because the user didn't create any account and you just received an access token...
How can you deal with it in order to "get him into the boxes" ? In order for the OAuth path to join the classic one at a moment during the process ?

Not sure if my post is very clear... It's the step after the system received the access token which is blur in my mind. 

Thanks a lot for your help !

Keep calm.

(05-24-2018, 03:42 PM)arma7x Wrote: https://aaronparecki.com/oauth-2-simplified/

Thanks a lot for the link but it's not really the issue to me. 
As i said, it's the part after the access token which is an issue to me. 

To unify it with a classic user system. If you have any ideas/advices.

You can use hooks and Ion Auth plus your auth token authentication.

I have a similar implementation for adldap2 for authenticating against Active Directory.

Basically once you get the OAUTH token you use that as a trigger to log in the user this way you can store any information you want in your local database.

Theme © iAndrew 2016 - Forum software by © MyBB