question

newuser-d4cddd9a-674c-4c0b-bd30-34baef9fdf5d avatar image
newuser-d4cddd9a-674c-4c0b-bd30-34baef9fdf5d asked ·

Redirect uri in Azure B2C with query string. Error detail: URL may not contain a query string


I'm trying to use Azure B2C OAuth for Alexa account linking with implicit flow.Below is the redirect url from Alexa

https://alexa.amazon.co.jp/spa/skill/account-linking-status.html?vendorId=XXXXXXXXXX

But adding this gives below error in Azure B2C app.

Failed to update xxx-xxxxxxapp application. Error detail: URL may not contain a query string

I tried below link for solving this but its not working https://blogs.aaddevsup.xyz/2018/04/query-string-is-not-allowed-in-redirect_uri-for-azure-ad/

I also tried auth code grant flow with SPA in B2C. That is also not working with Alexa as it has PKCE - https://github.com/MicrosoftDocs/azure-docs/issues/64073. I have to use Azure AD B2C. Any idea how to set up PKCE in Alexa account linking

Anyone succeeded in creating this?

alexa skills kitaccount linkingazure
10 |2000 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

Amazon_Bernardo Bezerra avatar image
Amazon_Bernardo Bezerra answered ·

Hello and thank you for your message.

What type of skill are you creating? Please notice that implicit code grant is only allowed for Custom Skills. All other types of skill must use the authorization code grant, as described here.

Regards,
Barry

10 |2000 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.