Skip to content

How to add custom Authentication Context #462

Answered by lscorcia
lscorcia asked this question in Q&A
Discussion options

You must be logged in to vote

For future reference, these are the commands that must be used:

# Export current SP Metadata
./ssoadm export-entity -u amadmin -f pwd.txt -e <your realm> -y <SP entity name> -c saml2 -x <extended metadata file name.xml>

In the exported file, edit the spAuthncontextClassrefMapping attribute section, i.e.:

<Attribute name="spAuthncontextClassrefMapping">
  <Value>my:custom:auth:context|2|default</Value>
  <Value>another:custom:auth:context|1|</Value>
</Attribute>

Then replace the current extended metadata document with the edited one:

# Delete SP Extended Metadata
./ssoadm delete-entity -u amadmin -f pwd.txt -e <your realm> -y <SP entity name> -c saml2 -x

# Import SP Extended Metadata
./…

Replies: 1 comment

Comment options

lscorcia
Feb 22, 2022
Collaborator Author

You must be logged in to vote
0 replies
Answer selected by lscorcia
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
1 participant