How to read value of SAML attribute received from the IdP?

后端 未结 2 1707
-上瘾入骨i
-上瘾入骨i 2021-02-08 11:27

I\'m using Spring Security SAML 1.0.1, and I want to know the value of the SAML attribute whose name is \"eduPersonAffiliation\". I\'ve coded a class which implements the

2条回答
  •  独厮守ぢ
    2021-02-08 11:49

    Another solution to access an attribute value is via SAMLCredential.getAttributeAsString(String name)

    credential.getAttributeAsString(attribute.getName())
    

提交回复
热议问题