我的后端服务在Nodejs中,我打算使用wso2身份服务器进行授权 . 为此,我必须从我的节点后 endpoints 击基于OAuth2的url [authorize,token] . 我已经尝试了一些nodejs oauth2服务器实现 . 但是对于WSO2身份服务器是否相同?如何从我的NodeJS后端服务连接到WSO2身份服务器进行授权?这应该是我应该使用的终点?
WSO2 Identity Server中的所有OAuth2 endpoints 都作为符合OAuth2规范的REST endpoints 公开 . 因此,在nodejs中使用标准OAuth2客户端来满足您的要求不会有任何问题 .
如果您想使用OAuth2,这些是您需要关注的 endpoints ,
授权 endpoints URL:https://localhost:9443/oauth2/authorize
令牌 endpoints URL:https://localhost:9443/oauth2/token令牌撤销 endpoints URL:https://localhost:9443/oauth2/revoke令牌内省 endpoints URL:https://localhost:9443/oauth2/introspect
[适当更改主机名和端口 . ]
1 回答
WSO2 Identity Server中的所有OAuth2 endpoints 都作为符合OAuth2规范的REST endpoints 公开 . 因此,在nodejs中使用标准OAuth2客户端来满足您的要求不会有任何问题 .
如果您想使用OAuth2,这些是您需要关注的 endpoints ,
授权 endpoints URL:https://localhost:9443/oauth2/authorize
令牌 endpoints URL:https://localhost:9443/oauth2/token
令牌撤销 endpoints URL:https://localhost:9443/oauth2/revoke
令牌内省 endpoints URL:https://localhost:9443/oauth2/introspect
[适当更改主机名和端口 . ]