Is it possible to have SPA authentication without redirecting to an outside login page -
i developing spa application connects bunch of webapi's. these api require user logged in, started digging openid conect , oauth2 examples, using identityserver.
they require, spa reasons, implicit grant should used retrieving access_tokens. token refreshes handled connecting authentication server using hidden iframe.
what understand approach o renewing access_token that, sessions maintained @ authentication service. hidden iframe goes authentication server, sessions still active, new access_token provided.
all looks me, except (for ux reasosn) fact user needs redirected authentication server page providing credentials.
isn't possible have spa application send credentials authentication server, getting access_token, , refresh using hidden iframe silently renewing (we, dont want user keep informing credentials every 15 minutes or every hour..).
if not acceptable security reasons, please explain why?
this oidc-client-js library does. have @ automaticsilentrenew settings in wiki page. understandably works long session @ authentication server still active.
wiki
Comments
Post a Comment