<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
0D54z0000AIIQK8CQPOkta Classic EngineAdministrationAnswered2024-12-20T23:46:07.000Z2024-12-20T12:51:55.000Z2024-12-20T23:46:07.000Z
Okta API - how to specify attribute statements for WS-Federation app?

[ copied from devforum by request of an Okta team member - https://devforum.okta.com/t/okta-api-how-to-specify-attribute-statements-for-ws-federation-app/31479/1 ]

 

Is there a way to set an Attribute Statement for a Templated WS Federation app (‘signOnMode’ = ‘WS_FEDERATION’) using the API?

 

01 - Tried the answer in SAML app- Is there API to update attribute statement - The app gets created without error, but there are no attributes when I look in the portal.

 

```

{

"name": "template_wsfed",

"label": "Test App",

"signOnMode": "WS_FEDERATION",

"settings": {

"app": {

[...]

},

"signOn": {

"attributeStatements": [

{

"name": "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name",

"values": [

"user.id"

],

"namespace": "urn:oasis:names:tc:SAML:2.0:attrname-format:unspecified",

"type": "GENERIC"

}

]

}

}

}

```

 

02 - Tried manually creating an attribute in the portal then doing an Apps API `GET` - The response contains the app, with no sign of the attribute in the response body.

 

03 - There's a `settings.app.attributeStatements = null` in the response body - tried to `POST` a new app with the attribute in there, and got `"errorSummary": "Type mismatch exception. ",`

 

```

{

"name": "template_wsfed",

"label": "Test App",

"signOnMode": "WS_FEDERATION",

"settings": {

"app": {

"attributeStatements": [

{

"name": "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name",

"values": [

"user.id"

],

"namespace": "urn:oasis:names:tc:SAML:2.0:attrname-format:unspecified",

"type": "GENERIC"

}

],

[...]

}

}

}

```

 

[04 to ∞] - Been reading forum posts, developer docs, API specs and examples, tried ChatGPT. Tried dozens of formats of post body. Can't figure out what's missing here. How can these be managed via API?

 

/help/servlet/rtaImage?refid=0EM4z000008eTLx

 

(Apologies if 'Administration' is the wrong category. I don't see a better one)


This question is closed.
Loading
Okta API - how to specify attribute statements for WS-Federation app?