设置自定义域后,Auth0Lock 11仍显示“无法配置验证页面”

问题描述

我遇到了一个问题,试图进行2天的研究,但没有找到任何解决方案。 对于上下文,我有一个租户,并且已经将自定义域设置为“ auth.mydomain.com.au”,然后,我按如下所示设置了Auth0Lock:

var lock = new Auth0Lock('i0**public api key','auth.mydomain.com.au',{
container: 'root',auth: {
    redirectUrl: 'https://redirect.mydomain.com.au/auth/auth0_authorize',responseMode: 'form_post',responseType: 'token id_token',params: {
        scope: 'openid profile email',state: '213'
    }
},allowSignUp: false,theme: {
    logo: 'https://theme.mydomain.com.au/images/product.png'
},languageDictionary: {
    title: "",passwordInputPlaceholder: "Password",usernameOrEmailInputPlaceholder: "Username/Email"
},overrides: {
    __tenant: "auth.mydomain.com.au",/*I've tried with tenantname.au.auth0.com but still no luck*/
    __token_issuer: "auth.mydomain.com.au"
},});
lock.show();

当我使用“阻止所有cookie”模式(在Chrome上)或“防止跨站点跟踪”模式(在Mac上)登录系统时。错误“无法配置验证页面”仍然出现。 以下是来自Auth0的日志

{
  "date": "2020-09-29T04:44:17.380Z","type": "fcoa","description": "Unable to configure verification page.","connection": "CustomConnection","connection_id": "con_1I***","client_id": "i0A***","client_name": "My app","ip": "115.73.219.110","user_agent": "Chrome 85.0.4183 / Windows 10.0.0","details": {
    "body": {},"qs": {
      "client_id": "i0A****","response_type": "token id_token","response_mode": "form_post","redirect_uri": "https://redirect.mydomain.com.au/auth/auth0_authorize","state": "b954c6e66571eb919daa11bcf2537b56","connection": "Li***","nonce": "HaqiY0fb_cr7sVzrLVDAZtPR2Q6OSJMR","scope": "openid profile email","realm": "CustomConnection","login_ticket": "KZGQCylcUCwIjDWzxub6KFGm3xS9fx_B","auth0Client": "eyJuYW1lIjoibG9jay5qcyIsInZlcnNpb24iOiIxms45LjAiLCJsaWJfdmVyc2lvbiI6eyJyYXciOiI5LjcuMyJ9fQ=="
    },"error": {
      "message": "Unable to configure verification page.","oauthError": "server_error","type": "oauth-authorization"
    },"session_id": "fSw1s5Yg4cjeAzvVyGo2Z1P8WXVzFRP9"
  },"hostname": "auth.mydomain.com.au","audience": "https://tenantname.au.auth0.com/userinfo","scope": [
    "openid","profile","email"
  ],"auth0_client": {
    "name": "lock.js","version": "11.9.0","lib_version": {
      "raw": "9.7.3"
    }
  },"log_id": "90020200929044421702000756068522539844203635993724584018","_id": "90020200929044421702000756068522539844203635993724584018","isMobile": false
}

但是,如果我在浏览器上删除cookie块,则系统运行良好,并且可以成功登录在这种情况下,你们有什么建议吗?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)