question

Mission2Win avatar image
Mission2Win asked

When disabling a skill, instead of bringing me login page with social login options, automatically enables with previously logged in social login.

Hi,

I have a skill that has multiple social login (Facebook, Google and Cognito login).

i) I enable my skill and link it will Facebook successfully

ii) Now I disable skill and it takes me to enable skill page and asks me to enable skill again

iii) When I tap on 'Enable' button, Instead of giving me login page with all social login options I have, it automatically enables my skill with Facebook as I had previously signed in with Facebook.

My question is:

1) What I need is, I need it to give me a login page with my social login options so I can switch to whichever social login.Every time I disable skill and I want to enable again, I want it to bring login page (login-page.jpg) so I can choose which ever social login I want to link my account with. My login page is coming from Cognito User Pool, so I am not sure how to handle this. Please provide me the sample code/guidance to achieve this.

2) What if I want to switch from one facebook account (or google) to another account to link my skill? How to handle this?

I didn't find any sample for both these scenario so your help would be appreciated.

Thanks.

alexa skills kitaccount linking
login-page.jpg (252.2 KiB)
1 comment
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Mission2Win avatar image Mission2Win commented ·

Can someone please look into this? "This post is currently awaiting moderation. If you believe this to be in error, contact a system administrator."

There is no where to contact administrator.

I am using multiple IDPs federation sign-in with Cognito User Pool Auth endpoints to achieve multiple social login, but not able to get any clue how to show login page when skill is disabled instead of enabling to previously used social login when pressed enable again.

0 Likes 0 ·
Jenn@amazon avatar image
Jenn@amazon answered
@Mission2Win

I replied to the other thread, didn't realize you had this post too. Sorry about that.

********

Sounds like the browser is caching the Facebook login. If you open a new tab, goto facebook.com and you're already logged in, then it's your browser caching the Facebook Login.

Try using a private window or log out of FB before trying to link again.

10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Mission2Win avatar image
Mission2Win answered

Hi @Jenn@amazon,

I tried as you said but that doesn't work. It's the same issue whether my skill is linked with Facebook or Google.

If I have linked with Google (or Facebook) and disable this skill, it doesn't give me a login page instead directly links with whichever social login I used previously. This is very inconvenient because we have customers who want to switch social login. Not sure how to resolve this.

10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Voice@ConnectedAppliances avatar image
Voice@ConnectedAppliances answered

I have a similar issue

On my skill, When I disable and enable the skill again (immediately). I do not see a login page, where as this action shows me a direct account linked successfully page with the previous credentials. I read through the amazon documentation on disabling the skill, it says it deletes the token at the client side. However on the server the jsessionid and the token remains valid. I would like to see a login page everytime the user enables the skill. This is our requirement. Kindly suggest if there is any provision or should we make a provision to delete the jsessionid as we issue a token? What is the right approach to archive this. ?

Pradeep Rangdal

1 comment
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Anand@Amazon avatar image Anand@Amazon ♦ commented ·

It looks like it's caching the data and session doesn't expire when user enable it for the second time. As you have mentioned your jsessionid should expire once your skill get successfully linked.

0 Likes 0 ·