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

Copper Contributor

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?

3 Replies
Just adding my comment here because the post was too lonely.

@arunkrishna2992 

 

We have run into the exact issue. Trying to setup azure b2c in SAP Gigya as an IDP and it does not like the callback/redirect URL because of the ? at the end. 

https://socialize.us1.gigya.com/socialize.finalizeOidcLogin?

 

Trying to work with Microsoft to see if they could allow it. It is a security risk to pass values in query string. however, we are not passing anything. just the ? which is required by SAP...

 

So far no luck, but i will reply here if we find a resolution.