简体   繁体   English

如何在资源服务器上验证 WSO2 oauth2 访问令牌

[英]how to validate WSO2 oauth2 access token on Resource Server

I am looking for fittings ends to our SSO puzzle.我正在寻找适合我们的 SSO 难题的配件。

Currently we have an OpenLDAP behind WSO2 Identity Provider.目前我们在 WSO2 身份提供者后面有一个 OpenLDAP。 A client (Service Provider) redirects authorization to the IP (OAuth2) and recieves an access_token.客户端(服务提供商)将授权重定向到 IP (OAuth2) 并收到 access_token。

All fine.一切都很好。

Next step is to validate this token on another Service Provider, in this case a reverse proxy (Apache or Nginx) residing on another EC2 instance, which protects a number of unprotected 3rd party applications (3rd party in the sense that we can't touch source code, but do the hosting our selves).下一步是在另一个服务提供商上验证此令牌,在这种情况下是驻留在另一个 EC2 实例上的反向代理(Apache 或 Nginx),它保护许多未受保护的第 3 方应用程序(从某种意义上说,我们无法触及第 3 方)源代码,但自己托管)。 Which tools do serve this request?哪些工具可以满足此要求?

Am am aware that the OAuth2 spec leaves a hiatus here and that there is draft which adds a /introspect call to validate this token.我知道 OAuth2 规范在这里留下了一个中断,并且有草案添加了一个/introspect调用来验证这个令牌。 I also know that pingidentity implements this draft as part of there Apache module ( https://github.com/pingidentity/mod_auth_openidc ).我也知道 pingidentity 将这个草案作为 Apache 模块( https://github.com/pingidentity/mod_auth_openidc )的一部分来实现。

I am just wondering how to implement this on the WSO2-IS side, as I don't find documentation.我只是想知道如何在 WSO2-IS 方面实现这一点,因为我没有找到文档。

*bonus: we also hit several errors while deploying WSO2 (SQL errors) and using it ( https://wso2.org/jira/browse/IDENTITY-3009 ) which made us a bit distrusting about the product. *奖励:我们在部署 WSO2(SQL 错误)和使用它( https://wso2.org/jira/browse/IDENTITY-3009 )时也遇到了几个错误,这让我们对产品有点不信任。

Oauth2 token validate may be performed with a SOAP call to Oauth2 令牌验证可以通过 SOAP 调用来执行

{WSO2_IS}/services/OAuth2TokenValidationService.OAuth2TokenValidationServiceHttpsSoap11Endpoint/

The response will include details regarding token validity and JWT claims.响应将包括有关令牌有效性和 JWT 声明的详细信息。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM