Leading 0 in SAML Attribute Statements Skip to main content
https://support.okta.com/help/answers?id=9062a000000bmjkqai&refurl=http%3a%2f%2fsupport.okta.com%2fhelp%2fanswers
How satisfied are you with the Okta Help Center?
Thank you for your feedback!
How satisfied are you with the Okta Help Center?
1
2
3
4
5
Very Dissatisfied
Very satisfied
Enter content less than 200 characters.
Ask Search:
Clay ColwellClay Colwell 

Leading 0 in SAML Attribute Statements

We have a SAML connection where there is an additioanl attribute on the statement with a statically set id for our organization to the application. However the ID we must use has a leading 0, but Okta is stripping the leading 0 when generating the assertion to the service making the assertion invalid. Does anybody know how to prevent okta from stripping the leading 0 on the statically set attribute?
Best Answer chosen by Clay Colwell
Gabriel SrokaGabriel Sroka (Okta, Inc.)
Hi Clay
Try putting double-quotes around it:
"0123"

All Answers

Gabriel SrokaGabriel Sroka (Okta, Inc.)
Hi Clay
Try putting double-quotes around it:
"0123"
This was selected as the best answer
Clay ColwellClay Colwell
Thanks Gabriel! That worked! Can't believe I never thought to try that!