session - Java backend: REST, authenticated with Google sign in, now what? -
i have application composed javascript frontend, , java backend deployed in tomcat. communication between frontend , backend via rest. using jersey this.
i followed official documentation add google sign-in in application: https://developers.google.com/identity/sign-in/web/ , managed authenticate backend:
googleidtoken idtoken = verifier.verify(idtokenstring); if (idtoken != null) {... the question is: how have proceed now? following documentation here https://developers.google.com/identity/protocols/openidconnect#authenticatingtheuser says
after obtaining user information id token, should query app's user database. if user exists in database, should start application session user. ...
should start normal java webapp session? (with difference got user credentials google instead of directly frontend).
- if yes, how start application session?
- if not, have do?
i lost here. please help.
my above question oriented. once authenticated google, have exact same thing after having checked email/password: create session username.
Comments
Post a Comment