I've enabled implicit flow support in azure AD registration which says:- "To enable the implicit grant flow, select the tokens you would like to be issued by the authorization endpoint:" And i am trying to authenticate for multiple identity provides hence not using msal or adal. But am unable to achieve silent refresh using hidden iframe.
- Sent a authorization request with scope including openid and response type as id_token(in a popup)
- Receive id_token , and everything else including session state.
Now (via Iframe) I am trying to fetch token using silent auth by sending the propmt=none, and id_token_hint = prev_id_token have also tried sending login_hint = preferred_username (which i got from JWTtoken.payloadObj.preferred_username)
P.S have also tried sending response_type as both id_token and token initially, and then try an silent refresh, its failing with this error everytime:-
error=login_required&error_description=AADSTS50058%3a+Session+information+is+not+sufficient+for+single-sign-on.%0d%0aTrace+ID%3a+5ceb4386-f4b1-40aa-8fb5-797c14379b00%0d%0aCorrelation+ID%3a+3401101e-9098-4048-bb05-78926181d733%0d%0aTimestamp%3a+2019-04-17+10%3a12%3a47Z&state={my state}
Please let me know what i am missing , it needs to be implicit flow. and i need to achieve a silent refresh using hidden i frame.
I've implemented it as it is mentioned in this post:- https://learn.microsoft.com/en-us/azure/active-directory/develop/v2-oauth2-implicit-grant-flow