angularjs - Angular app with stormPath java sdk -


i have angular app , have spring-boot app stormpath java sdk authentication. have endpoints created registration,receive token, refresh token etc.

i have registration flow setup , able login user. these few questions having trouble handle on app.

  1. once have access_token, how make sure passed request api calls being made app.

  2. how automatically refresh token when new request made.

  3. how know access_token has expired can throw pop ask continue , refresh token.

i have been trying read find proper solution tutorials explain login functionality either facebook,twitter etc.

i donot have node.js/express in app yet if needed can incorporate need since have api endpoints created me info need.

can provide more info if needed.

any suggestions or inputs appreciated me rolling.

i work @ stormpath.

we use secure cookie strategy storing access , refresh token on client, allows transparently issue new access token when expires. makes easy authenticate requests angular app, without doing special.

we discuss strategy @ high level in our express.js documentation:

http://docs.stormpath.com/nodejs/express/latest/authentication.html#cookie-authentication

we're working on adding same logic our java sdk, , i'm told may available in master next week. i'd watch repo updates :)


Comments

Popular posts from this blog

wordpress - (T_ENDFOREACH) php error -

Export Excel workseet into txt file using vba - (text and numbers with formulas) -

Using django-mptt to get only the categories that have items -