How to achieve long lived login session with Oauth2 and javascript client(Spring Oauth2 + Angularjs)
I've a spring backend with Spring OAuth2 and Angular client. What is the proper way to achieve long lived logins which is still arguably secure . I guess I can use password flow and refresh tokens , but this doesn't seem any safer than using long lived access tokens with implicit flow for browser clients. I think I can use: Redirects - which will interfere with whatever user was doing Popups - which will get blocked without user interaction on the client level. But is there any better approach? P.S: Cloudfoundry's new UI seems to have achieved exactly what I want. The auth code flow is always