sam2 断言检查后的自定义 oAuth2 令牌 [英] custom oAuth2 token after a sam2 assertion check

查看:24
本文介绍了sam2 断言检查后的自定义 oAuth2 令牌的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在检查 saml2 断言作为输入后,我需要使用 wso2 释放自定义 oAuth2 令牌.如何定制 oAuth2 令牌?

I need to release, using wso2 is, a custom oAuth2 token after a check on saml2 assertion as input. How is it possibile customized the oAuth2 token ?

推荐答案

您可以检索 SAML2 断言的 OAuth 访问令牌.由于 WSO2 身份服务器 4.5.0 支持 saml2 不记名声明授予类型.您可以找到 doc.您可以通过添加自定义实现来修改返回的 OAuth2 访问令牌.有一个 interface 你可以实现这个.在这里,您有一个称为问题"的方法.其实你可以实现这个抽象类.但是我还没有这样做.. 仅供参考.

You can retrieve OAuth access token for SAML2 assertion. As WSO2 Identity Server 4.5.0 supports saml2 bearer assertion grant type. You can find the doc. You can modify the returning OAuth2 access token by adding custom implementation. There is an interface that you can implement this. Here you have a method called "issue". Actually you may can implement the Abstract class of this. However i have not done this.. Just for information.

这篇关于sam2 断言检查后的自定义 oAuth2 令牌的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆