2

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

Anyone succeeded in creating this?

Arunkrishna
  • 416
  • 1
  • 4
  • 18
  • Hi, Did you get any solution? We ran into a similar problem – Nagendra Mar 11 '22 at 18:36
  • Does this answer your question? [How can I pass a custom value to Azure AD B2C and need to return that parameter along with the response or with the common Redirect URI?](https://stackoverflow.com/questions/62500094/how-can-i-pass-a-custom-value-to-azure-ad-b2c-and-need-to-return-that-parameter) – Michael Freidgeim Jul 04 '23 at 07:19

2 Answers2

3

Adding URL parameters isn't allowed in Azure AD B2C.

The document you linked also provides that you use the state parameter. The problem with this is that your Amazon Alexa requires a vendor Id URL parameter.

  • Any way to solve this? I have to use Azure AD B2C. In authorization code flow AD B2C uses PKCE flow. Do you have any idea to set up PKCE in Alexa account linking? – Arunkrishna Feb 18 '21 at 06:43
0

You can add your own redirection service such that B2C redirects to your service which then redirects to the final application adding any needed query parameters that can be extracted from the B2C claims.

Randy
  • 1