Skip to content

feat: Oauth2 contextual session - #3170

Open
DerGut wants to merge 6 commits into
apache:mainfrom
DerGut:oauth2-contextual-session
Open

feat: Oauth2 contextual session#3170
DerGut wants to merge 6 commits into
apache:mainfrom
DerGut:oauth2-contextual-session

Conversation

@DerGut

@DerGut DerGut commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

Which issue does this PR close?

This is based on token expiration from #3160 and the AuthManager::contextual_session from #3081. It's adding adding a first implementation for contextual sessions with the OAuth2Manager. It also validates the API introduced by that PR.

What changes are included in this PR?

The OAuth2Manager now derives contextual sessions from its catalog session. Contextual sessions are cached by their session ID (that's why the token expiration PR is required to merge first). The catalog session is now expected to be initialized only once.
Effectively, users will be able to use different client credentials per request in a multi-tenant setting that leverages OAuth2.

Are these changes tested?

Yes, added tests.

AI Disclosure

I used AI to help me with code, tests and documentation.

@DerGut
DerGut marked this pull request as ready for review September 7, 2026 23:09
@DerGut

DerGut commented Sep 8, 2026

Copy link
Copy Markdown
Contributor Author

@plusplusjiajia would be great if I could get your eyes on this! 🙏

(the CI failure is unrelated, I'm looking into it)

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