MDD
October 2, 2019, 4:03am
1
Hi,
I am trying to setup a SAML Assertion Inline Hook and sending the following response from the external webservice to Okta but the hook is getting failed with the error message “Unsupported Command”. May I know what is the correct response for adding a new attribute into the SAML assertion . Thanks
{
“commands”: [
{
“op”: “add”,
“path”: “/claims/testattribute”,
“value”: {
“attributes”: {
“NameFormat”: “urn:oasis:names:tc:SAML:2.0:attrname-format:basic”
},
“attributeValues”: [
{
“attributes”: {
“xsi:type”: “xs:string”
},
“value”: “testvalue”
}
]
}
}
]
}
]
}
Govner
October 2, 2019, 6:29am
2
Do you need the type and value branches before “op”:
{
"type": "com.okta.assertion.patch",
"value": [
dragos
October 2, 2019, 7:57am
3
Following @Govner ’s reply, here is an example of a correct response to add a claim “test” with the value “test”.
{
"commands": [
{
"type": "com.okta.assertion.patch",
"value": [
{
"op": "add",
"path": "/claims/test",
"value": {
"attributes": {
"NameFormat": "urn:oasis:names:tc:SAML:2.0:attrname-format:basic"
},
"attributeValues": [
{
"attributes": {
"xsi:type": "xs:string"
},
"value": "test"
}
]
}
}
]
}
]
}
MDD
October 2, 2019, 8:30am
4
Thanks for your response. It worked !!
Hello how would that work for an Array attribute?
system
Closed
January 24, 2024, 11:27pm
6
This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.