仅使用 pac4j-saml 来验证 SAMLResponse

问题描述 投票:0回答:1

如何仅使用

pac4j-saml
版本 6.0.2 来验证我返回的
SAMLResponse
。最终需要用户个人资料。

到目前为止已完成的步骤。

val saml2Client = new SAML2Client()
val samlResponse = "..."
saml2Client.getUserProfile(// How to get the call context and credentials to be passes in to this)

我一直在四处挖掘,但运气不佳。

我们使用

akka-http
来表示请求,并使用
scala

任何指示都会有帮助。

无法找到太多有关如何使用此库的文档,仅用于使用 saml 断言获取用户配置文件。

scala saml akka-http pac4j
1个回答
0
投票

这里有 scala Play 示例:https://github.com/pac4j/play-pac4j-scala-demo

© www.soinside.com 2019 - 2024. All rights reserved.