Hello KK sir,
I am trying to authenticate users (i want to just login only as of now, but would like to register also).
Actually there will a platform where i will be creating some users, now they all have there email id's they can login to there google drive and in other tab they will login to couch backed portal, so i don't want my users to remember usernames and password, kinda like single sign-on.
so Basically, i tried and i reached to this, so this users click on "Sign in with google", then he is redirected to Google Authentication platform and he chooses email id and then he is being redirected to couch page. where i can see the email id and few details related to the user.
Now i am authenticated from google's side, but could not proceed further as i cannot login just by email id, i need to enter password also, which google is not going to post back.
so i need your help as how can we achieve this, like creating session cookies (getting inside couch) by using google sign-in.
further i can check if the user exists in database, then ok, it will login... else it will prompt to register with google sign in credentials... or maybe i will show error as "You are not employee of XYZ Corp. so you are not authorised to get into this..."
Awaiting your response,
Thankyou for Couch (We all are loving it
)
Edit :
Sir if you need credentials, do let me know in DM.
I am trying to authenticate users (i want to just login only as of now, but would like to register also).
Actually there will a platform where i will be creating some users, now they all have there email id's they can login to there google drive and in other tab they will login to couch backed portal, so i don't want my users to remember usernames and password, kinda like single sign-on.
so Basically, i tried and i reached to this, so this users click on "Sign in with google", then he is redirected to Google Authentication platform and he chooses email id and then he is being redirected to couch page. where i can see the email id and few details related to the user.
Now i am authenticated from google's side, but could not proceed further as i cannot login just by email id, i need to enter password also, which google is not going to post back.
so i need your help as how can we achieve this, like creating session cookies (getting inside couch) by using google sign-in.
further i can check if the user exists in database, then ok, it will login... else it will prompt to register with google sign in credentials... or maybe i will show error as "You are not employee of XYZ Corp. so you are not authorised to get into this..."
Awaiting your response,
Thankyou for Couch (We all are loving it

Edit :
Sir if you need credentials, do let me know in DM.
