Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add owncloud-selector cookie support #180

Merged
merged 1 commit into from
Sep 16, 2021
Merged

Conversation

butonic
Copy link
Member

@butonic butonic commented Sep 14, 2021

For the live migration we are reading a claim from the openid connect userinfo to set the owncloud-selector cookie that the proxy uses to route requests to ocis or oc10.

The response we need to react to is the redirect from the IdP which looks like
https://cloud.ocis.test/apps/openidconnect/redirect?code=fooberbazrandombytes&scope=openid%20profile%20email&session_state=some.jwt.token%3D&state=something

There is no Authorization Bearer header set, yet so we cannot set the cookie in the proxy. For now, the best place to put the code is the openidconnect app.

@CLAassistant
Copy link

CLAassistant commented Sep 14, 2021

CLA assistant check
All committers have signed the CLA.

@butonic butonic self-assigned this Sep 14, 2021
@butonic butonic force-pushed the set-selector-cookie branch 4 times, most recently from 302f949 to 3d5148f Compare September 14, 2021 14:21
@butonic butonic marked this pull request as ready for review September 14, 2021 15:01
Signed-off-by: Jörn Friedrich Dreyer <[email protected]>
@sonarcloud
Copy link

sonarcloud bot commented Sep 15, 2021

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

100.0% 100.0% Coverage
0.0% 0.0% Duplication

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.

3 participants