<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M74D8PB" height="0" width="0" style="display:none;visibility:hidden">
Loading
Skip to NavigationSkip to Main Content
0D54z00007dEjoHCASOkta Identity EngineWorkflowsAnswered2025-05-11T09:01:34.000Z2022-05-10T10:00:12.000Z2022-05-11T16:13:40.000Z

aosyz (aosyz) asked a question.

SAML HOOK - NEITHER REPLACING NOR ADDING CLAIMS

I have added claims in the SAML response as mentioned in the doc. Below is JSON response from the hook.

 

{"commands":[{"type":"com.okta.assertion.patch","value":[{"op":"replace","path":"/claims/var1/attributeValues/1/value","value":"True"},{"op":"replace","path":"/claims/var2/attributeValues/1/value","value":"True"},{"op":"replace","path":"/claims/var3/attributeValues/1/value","value":"True"},{"op":"add","path":"/claims/extPatientId","value":{"attributeValues":[{"attributes":{"xsi:type":"xs:string"},"value":"4321"}],"attributes":{"NameFormat":"urn:oasis:names:tc:SAML:2.0:attrname-format:basic"}}},{"op":"add","path":"/authentication/sessionLifetime","value":300}]}]}

 

The SAML Tracer is not throwing any error, but the SAML response does not have the updated data as well.

<saml2:AttributeStatement

xmlns:saml2="urn:oasis:names:tc:SAML:2.0:assertion">

<saml2:Attribute

Name="var6"

NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:unspecified"/>

<saml2:Attribute

Name="var7"

NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:unspecified"/>

<saml2:Attribute

Name="var8"

NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:unspecified"/>

 

 


This question is closed.
Loading
SAML HOOK - NEITHER REPLACING NOR ADDING CLAIMS