Skip to content

core/api: fix Provider serializer optional fields#20289

Open
natzberg wants to merge 1 commit intogoauthentik:mainfrom
natzberg:core/fix-provider-backchannel-fields
Open

core/api: fix Provider serializer optional fields#20289
natzberg wants to merge 1 commit intogoauthentik:mainfrom
natzberg:core/fix-provider-backchannel-fields

Conversation

@natzberg
Copy link

@natzberg natzberg commented Feb 13, 2026

closes #9787

The assigned_backchannel_application_slug and assigned_backchannel_application_name fields in the Provider serializer were causing Pydantic validation errors in the Python client when these fields returned None values.

Added required=False to these ReadOnlyField definitions to correctly mark them as optional in the OpenAPI schema, allowing the Python client to handle None values.

Also applied the same fix to assigned_application_slug and assigned_application_name for consistency.

make all was run after making these changes and no issues were reported.

Fixes goauthentik#9787

The assigned_backchannel_application_slug and assigned_backchannel_application_name
fields in the Provider serializer were causing Pydantic validation errors in the
Python client when these fields returned None values.

Added required=False to these ReadOnlyField definitions to correctly mark them
as optional in the OpenAPI schema, allowing the Python client to handle None values.

Also applied the same fix to assigned_application_slug and assigned_application_name
for consistency.
@natzberg natzberg requested a review from a team as a code owner February 13, 2026 21:58
@netlify
Copy link

netlify bot commented Feb 13, 2026

Deploy Preview for authentik-docs ready!

Name Link
🔨 Latest commit abb69ce
🔍 Latest deploy log https://app.netlify.com/projects/authentik-docs/deploys/698f9e761310a9000851f0f1
😎 Deploy Preview https://deploy-preview-20289--authentik-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant