question

newuser-24ad2227-5277-4814-b7ce-063875ad4dc9 avatar image

ASK Account Linking fails against Azure AD B2C

Account linking on the mobile app fails, the Azure AD B2C oAuth screen is shown, I can authenticate, but they the redirect fails, with a blank screen. If I replicate this on a web browser, I can see the content that is returned is {"message":null}

Authorization URI: https://login.microsoftonline.com/bbftio.onmicrosoft.com/oauth2/v2.0/authorize?p=B2C_1_SI&prompt=login&client_id=e627f13c-ff76-455b-9397-5878d88cab0f&scope=e627f13c-ff76-455b-9397-5878d88cab0f%20offline_access&response_type=code&response_mode=form_post&redirect_uri=https://pitangui.amazon.com/api/skill/link/M3UJ2XWJZJN39S

Whitelisted domains: login.microsoftonline.com, secure.aadcdn.microsoftonline-p.com

skill id:M3UJ2XWJZJN39S

Grant type: AuthCode

Time and date of example failure to link: April 10, 2018 16:40 BST

Region: EU

Device: iOS

Hope that's enough. I've tried this before and have never had it working against Azure AD B2C. Interested if anyone has ever made this work, and if Amazon have any idea about compatibility.

Thanks!

alexa skills kitaccount linkingazure
10 |3000 characters needed characters left characters exceeded

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

1 Answer

Radek Stepan avatar image
Radek Stepan answered

Hi,

you see "{"message":null}" because there is missing "state" parameter in reply redirect. I am trying to connect with B2C and haven succeeded myself. I am currently trying to link using "Auth code grant" from https://alexa.amazon.com/ with fiddler on...

if you find the solution, please post...

Radek

10 |3000 characters needed characters left characters exceeded

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