使用(OAuth2服务器)验证Ckan时出错-WSO2身份服务器

时间:2019-05-29 15:09:37

标签: nginx wso2 wso2-am wso2carbon ckan

在使用Wso2-apim配置我的CKAN并使用以下配置时:

ckan.oauth2.authorization_endpoint = https://wso2am/oauth2/authorize
ckan.oauth2.token_endpoint = https://wso2am/oauth2/token
ckan.oauth2.profile_api_url = https://wso2am/userinfo
ckan.oauth2.client_id = *** OAuth Client Key from the Inbound Authentication Configuration at WSO2 ***
ckan.oauth2.client_secret = *** OAuth Client Secret from the Inbound Authentication Configuration at WSO2 ***
ckan.oauth2.scope = all_info openid
ckan.oauth2.profile_api_user_field = email
ckan.oauth2.profile_api_fullname_field = name
ckan.oauth2.profile_api_mail_field = email
ckan.oauth2.authorization_header = Authorization

我的oauth服务器(即wso2和ckan)都配置了反向代理-nginx。  因此,两者的IP都相似,只是request_uri  区别。 例如

CKAN: https://nginx-ip/ckan and 
WSO2 at : https://nginx-ip/wso2am/carbon

因此,在WSO2-apim中注册我的应用并生成客户端密钥和客户端ID之后。我将它们粘贴到CKAN端的development.ini中的上述配置中。

因此,我登录CKAN Gui并在Oauth服务器WSO2中输入我的凭据,授权后,我被重定向到CKAN,出现以下错误:

enter image description here

我已经按照wso2上的Identity.xml中的ResourceAccessControl和Catalina-server.xml中的Valve的一些指南进行操作。但是,没有希望,这一切都不起作用。

CKAN / Nginx或WSO2证书验证失败的原因可能是什么?

0 个答案:

没有答案
相关问题