Repository navigation
Description
Community Note
- Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request.
- Please do not leave +1 or me too comments, they generate extra noise for issue followers and do not help prioritize the request.
- If you are interested in working on this issue or have submitted a pull request, please leave a comment.
Before submitting a bug report, we ask that you first search existing issues and pull requests to see if someone else may have experienced the same issue or may have already submitted a fix for it.
Python Version & Okta SDK Version(s)
Python v3.14.4
okta 3.4.3
Affected Class/Method(s)
okta.api.application_api.ApplicationApi.list_applications
okta.models.saml_application_settings_sign_on.SamlApplicationSettingsSignOn
Customer Information
Organization Name: Health Catalyst
Paid Customer: yes
Code Snippet
import asyncio
from okta.client import Client as OktaClient
import traceback
BASE_URL = "xxx"
CLIENTID = "xxx"
PRIVATE_KEY = "xxx"
async def main():
config = {
"authorizationMode": "PrivateKey",
"orgUrl": f'https://{BASE_URL}',
"scopes": ["okta.groups.read", "okta.apps.read"],
"clientId": CLIENTID,
"privateKey": PRIVATE_KEY
}
client = OktaClient(config)
try:
data, response, error = await client.list_applications()
for app in data:
print(app.label, f'({app.name})', app.id)
except Exception as e:
print(f"An error occurred: {e}")
traceback.print_exc()
if __name__ == "__main__":
asyncio.run(main())Debug Output / Traceback
https://gist.github.com/jay-bloodworth/73399b55ccf4bc0ef88052583afe65f7
Expected Behavior
The function should return a list of application objects.
Actual Behavior
The call produced validation errors for the SamlApplication object as shown in the linked gist. In particular, the library complains about the following missing fields:
- allowMultipleAcsEndpoints
- assertionSigned
- honorForceAuthn
- requestCompressed
- responseSigned
Steps to reproduce
- Run the code snippet provided above with appropriate credentials.
References
This appears to be essentially the same issue as #536 except it involves the fields that were not made optional in the patch resolving that issue. Marking all five of those fields Optional and giving them a default value of None in saml_application_settings_sign_on.py prevents the error.
Activity
jackvaughanjr commentedon Aug 4, 2026
Corroborating this independently against the current pinned release:
okta==3.4.4, Python 3.13.9,pydantic==2.11.5.PR #542 (merged, closing #536) left exactly these 5 fields required in
okta/models/saml_application_settings_sign_on.py, matching the list above:All 10 other fields #542 touched (
audience,authnContextClassRef,destination,digestAlgorithm,idpIssuer,recipient,signatureAlgorithm,ssoAcsUrl,subjectNameIdFormat,subjectNameIdTemplate) are confirmedOptionalwithdefault=Nonein the installed 3.4.4 package, so that part of the fix is working asintended. This is specifically about the 5 booleans #542 deliberately left
required.
Minimal repro isolating the model, with no live tenant needed, captured verbatim
from a real run:
Exactly the 5 fields listed in the issue description above, with no additional
drift beyond what has already been identified here.
#542 already established the fix shape for this: edit
openapi/api.yaml'srequired:list for the schema and mirror it in the generated model. The enumfield_validatorguard that pattern sometimes needs doesn't apply here, sincethese 5 are plain booleans with no enum validation. That makes this a
same-shaped, low-risk follow-up to #542.
Cross-reference: #572 reports the same class of defect for
UserTypeCondition, where an SDK model is stricter than the live API and one non-conforming record aborts an entire page of results.jasonhernandez commentedon Aug 20, 2026
Confirming this against another tenant on 3.4.4, and adding a root cause that I think changes how the fix should be scoped.
The failures track OIN catalog apps vs. custom apps — not partial configuration, which was the framing in #536 and is probably why #542 left these five fields required.
Measured over a production tenant,
filter=signOnMode eq "SAML_2_0", feeding each app individually intoApplicationJsonConverter.from_dict(50 apps, 39 failures, 33 of them these booleans):The 33 are all Okta Integration Network catalog integrations —
salesforce,slack,google,amazon_aws_sso, plus 25 other catalog templates. Theirsettings.signOncontains only the override shape:For catalog apps the SAML mechanics live in the OIN template rather than the app instance, so the API never returns
allowMultipleAcsEndpoints,assertionSigned,requestCompressed, orresponseSigned. Every app in the tenant carrying the full custom-SAMLsignOnshape (23 keys) validated fine.Two consequences worth noting:
honorForceAuthnvaries by template — 9 of the 33 omit it as well, the other 24 include it. So the omitted set is not fixed, which argues for making all fiveOptionalwithNonedefaults rather than relaxing them selectively or special-casing templates.On impact: because
api_client.py::__deserializevalidates an entire page in one list comprehension, those 33 failures makelist_applicationsreturnNonefor all 50 apps, of every sign-on mode. There is no per-item tolerance, so a caller cannot skip the offending apps — 11 perfectly valid apps in this tenant are unreachable because of the other 39.One caveat for anyone tracking this as their only blocker: fixing these five booleans was not sufficient in my case. 6 further apps in the same tenant fail for two unrelated model defects —
Application.featuresrejectingAUTO_CONFIRM_IMPORTS, andBrowserPluginApplication.namerejecting OIN catalog SWA apps — which I filed separately as #574. Since one failure blanks the page, those 6 keeplist_applicationsreturningNoneeven after this issue is resolved.refactor(okta): Update Okta Module to use Models (#1243)
fix(spec): relax required boolean constraints on SamlApplicationSetti…
BinoyOza-okta commentedon Sep 21, 2026
The issue has been addressed and fixed under version v3.4.6. Hence, marking this issue as resolved.