Skip to content

feat: Added logout url to an instance settings endpoint#4650

Merged
shepilov merged 2 commits intomasterfrom
feat_oidc_logout_url_in_instance_settings
Feb 5, 2026
Merged

feat: Added logout url to an instance settings endpoint#4650
shepilov merged 2 commits intomasterfrom
feat_oidc_logout_url_in_instance_settings

Conversation

@shepilov
Copy link
Copy Markdown
Contributor

Specially for the flagship app.

To be able to initiate OIDC logout from the client app

Copy link
Copy Markdown
Member

@taratatach taratatach left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It should probably be added to the response from updateInstance() as well.
In fact, a helper to build this response for both methods would be nice.

@shepilov
Copy link
Copy Markdown
Contributor Author

shepilov commented Feb 3, 2026

It should probably be added to the response from updateInstance() as well. In fact, a helper to build this response for both methods would be nice.

Why do you need it in the updateInstance response?

@shepilov shepilov force-pushed the feat_oidc_logout_url_in_instance_settings branch from a94c763 to 29b55c2 Compare February 3, 2026 16:01
@taratatach
Copy link
Copy Markdown
Member

Why do you need it in the updateInstance response?

The method returns an io.cozy.settings.instance object as well.

@shepilov
Copy link
Copy Markdown
Contributor Author

shepilov commented Feb 4, 2026

Why do you need it in the updateInstance response?

The method returns an io.cozy.settings.instance object as well.

Yes, but it won't be called to have information about the instance, and specifically from the flagship app.
And I hope it's a tmp solution, and we will have a specific configuration endpoint soon, which we've discussed on barcamp

@shepilov shepilov force-pushed the feat_oidc_logout_url_in_instance_settings branch from 29b55c2 to 11bf05f Compare February 4, 2026 13:06
@shepilov shepilov force-pushed the feat_oidc_logout_url_in_instance_settings branch from 11bf05f to 845a69c Compare February 4, 2026 13:48
@shepilov
Copy link
Copy Markdown
Contributor Author

shepilov commented Feb 5, 2026

It should probably be added to the response from updateInstance() as well. In fact, a helper to build this response for both methods would be nice.

fix with the same code in updateInstance, yes, it's cahced for 60 min in the cozy-client, so I didn't find a place were we updating cozy-instance with client but anyway.

You can create a separate issue for the refactoring because it's not so straightforward. We are calling an external service for a legal_notice_url, and errors should be treated more carefully. especially on instance update

@shepilov shepilov merged commit 66a1d92 into master Feb 5, 2026
4 checks passed
@shepilov shepilov deleted the feat_oidc_logout_url_in_instance_settings branch February 5, 2026 15:01
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.

2 participants