首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Auth0自定义社交连接扩展不能与Twitch一起使用?

问Auth0自定义社交连接扩展不能与Twitch一起使用?
EN

Stack Overflow用户
提问于 2017-10-01 17:53:03
回答 1查看 451关注 0票数 0

现在,我正在使用React-Redux创建Twitch应用程序。

我只是在使用Auth0时遇到了身份验证问题。

代码语言:javascript
复制
import auth0 from 'auth0-js';

export default class Auth {
    constructor() {
        this.popupTwitch = this.popupTwitch.bind(this)
    }

    auth0 = new auth0.WebAuth({
        domain: 'XXX.auth0.com',
        clientID: XXX,
        redirectUri: 'http://localhost:3000/callback',
        audience: 'https://XXX.auth0.com/userinfo',
        responseType: 'token id_token',
        scope: 'openid'
    });

    popupTwitch() {
        this.auth0.popup.authorize({
            connection: 'twitch'
        })
    }
}

当我运行这段代码时,auth0返回以下错误。

代码语言:javascript
复制
http://localhost:3000/?error=redirect_mismatch&error_description=Parameter+redirect_uri+does+not+match+registered+URI&state=XXX

我的设置截图如下。

Twitch Developer Dashboard Apps

Auth0 Custom Social Connection

提前感谢您的帮助。

EN

回答 1

Stack Overflow用户

发布于 2017-10-08 10:20:23

您好,您需要将twitch回调设置为重定向到auth0,而不是本地主机。所需的域名可在auth0客户端的设置中找到:https://manage.auth0.com/#/clients

希望这能有所帮助:)

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/46511202

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档