azure “为输入参数'redirect_uri'提供的值无效”使用firebase

qv7cva1a  于 2023-08-07  发布在  其他
关注(0)|答案(2)|浏览(183)

Firebase告诉我这样做:


的数据
所以我做了

但我仍然得到这个错误“输入参数'redirect_uri'的提供值无效”
我觉得我完全按照指示做了,但还是不起作用。我不知道如何进一步调试它。有什么建议吗?
下面是我调用signIn的前端代码

let provider = new firebase.auth.OAuthProvider("microsoft.com");
  provider.addScope("Calendars.Read");
  firebase.auth().signInWithPopup(provider).then(handleResponse);

字符串

编辑我改变了我的自定义域的网址,它似乎是工作,但现在我得到Error getting verification code from microsoft.com response: proof key for code exchange is required for cross-origin

prdp8dxp

prdp8dxp1#

出于某种原因,Firebase决定更改处理auth的url。它使用的不是.firebaseapp.com/__/auth/handler url,而是我实际的自定义域。虽然我不太明白为什么会这样...
Error getting verification code from microsoft.com response: proof key for code exchange is required for cross-origin之所以发生,是因为我在Azure上而不是Web平台上配置了SPA。

rseugnpd

rseugnpd2#

@dallin-davis是对的,而不是https://[projectname].firebaseapp.com/__/auth/handler
我不得不在“Web”部分添加我的域名URL。https://mydomain/__/auth/handler
x1c 0d1x的数据

相关问题