Angular social login

hello,
i am trying to implement social login in my application. i have the implemented https://developer.okta.com/authentication-guide/social-login/google/ docs flow. everything work fine.
i am getting the token in my url but nothing happens after that.
i am getting error AuthSdkError: Unable to retrieve OAuth redirect params cookie

is there something that i am missing or doing wrong ?
note:
href=“https://dev-752434.oktapreview.com/oauth2/v1/authorize?idp=0oajx3fxqriyK…&client_id=0oajfz87w6suo…&response_type=id_token token&response_mode=fragment&scope=openid profile email&redirect_uri=http://localhost:4200/implicit/callback&state=w123dsw&nonce=g5ly497e8ps”

redirect uri : http://localhost:4200/implicit/callback

the same redirect uri is working fine for normal login flow

Hi @vinay1

There is currently a feature gap when using social authentication with sign-in widget. The function redirectToIdp can not retrieve the tokens from Okta and pass them to the application in this use-case.

To resolve this issue, you need to set up a cookie called “okta-oauth-redirect-params”. You can find here an example to set up this cookie manually.

You can find more details about this issue below

hi dragos,
thanks for the quick reply.

i am not using sign-in widget. i am using normal google login which uses (a href="").
will it work for it also ?.

Hi @vinay1

Can you please provide a snippet of your code to further review?

i will try to recreate it on stackblitz.
but just for reference i am using this


html link method

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.