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

Popular posts from this blog

1111. appearing after print sequence - php -

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

Ruby on Rails, ActiveRecord, Postgres, UTF-8 and ASCII-8BIT encodings -