简体   繁体   English

在java中登录adfs并从saml响应中获取断言

[英]Login adfs in java and get assertion from saml response

I am trying to connect adfs in java native application. 我试图在java本机应用程序中连接adfs There are some problems when access saml response after successful authentication into adfs. 在成功验证到adfs后访问saml response时存在一些问题。

  1. url connect with jsoup url与jsoup连接

    • https://<fqdn>/adfs/ls/IdpInitiatedSignOn.aspx?

    • loginToRp=urn:amazon:webservices

  2. fill username and password and post data 填写用户名和密码并发布数据

  3. after successfully login getting context data 成功登录后获取上下文数据

  4. post context data to fqdn mfa (multi factor authentication) 将上下文数据发布到fqdn mfa (多因素身份验证)

I am getting login page again but not saml response 我再次获得登录页面但not saml response

You need to show the ADFS configuration. 您需要显示ADFS配置。

IdpInitiatedSignOn.aspx?loginToRp=urn:amazon:webservices implies that: IdpInitiatedSignOn.aspx?loginToRp = urn:amazon:webservices暗示:

  • urn:amazon:webservices is the identifier of a RP urn:amazon:webservices是RP的标识符
  • The RP needs to be built on top of the SAML protocol RP需要建立在SAML协议之上
  • The reply URL needs to be configured to the SAML ACS (the method expecting the token) of your app. 需要将回复URL配置为应用程序的SAML ACS(期望令牌的方法)。

Is this what you have done? 这是你做的吗?

What Java SAML stack are you using? 您使用的是什么Java SAML堆栈?

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

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