首页 文章

如何使用Github设置WSO2 API Manager登录?

提问于
浏览
2

我想用Github设置WSO2 APIM登录 .

我已经将WSO2 IS与APIM集成并安装了WSO2 IS Github身份验证器,然后按照用户指南Configuring Github Authenticator设置Github身份验证器 . 它适用于文档中提到的示例应用程序 .

但是,当我把SP换成APIM时,我得到了

Error 401 : Authorization Required.


The server couldn't verify that you are authorized to access the requested resource.

另外我看过[Article] How To Setup a WSO2 API Manager Store Login with Google,似乎没有更特别的配置 . 不好的是我无法连接谷歌,我无法测试它 . :(

我怎样才能解决这个问题?有什么建议吗?谢谢 .

1 回答

  • 1

    这是因为用户的默认角色是internal / everyone,我们可以更新internal / everyone角色权限或更改user-mgt.xml中的默认角色

    <Realm>
       <configuration>
         .....
         <EveryOneRoleName>everyone</EveryOneRoleName> <!--change it-->
       </configuration>
    </Realm>
    

    它会起作用 .

相关问题