Skip to content

Support OAuth2 authentication #809

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

Merged
merged 2 commits into from
Aug 21, 2025
Merged

Support OAuth2 authentication #809

merged 2 commits into from
Aug 21, 2025

Conversation

acogoluegnes
Copy link
Contributor

@acogoluegnes acogoluegnes commented Aug 14, 2025

This commit introduces OAuth2 settings (token endpoint URI, client secret, etc) in the stream environment builder. When OAuth2 is in use, the library fetches a token from the HTTP(S) endpoint and use it to authenticate against the broker. The library also takes care of refreshing tokens: when a token is about to expire, a new one is fetched, and connections re-authenticate.

Fixes #781

@acogoluegnes acogoluegnes force-pushed the oauth2 branch 5 times, most recently from 3169a68 to 0b596dc Compare August 20, 2025 11:57
This commit introduces OAuth2 settings (token endpoint URI, client
secret, etc) in the stream environment builder. When OAuth2 is in use,
the library fetches a token from the HTTP(S) endpoint and use it to
authenticate against the broker. The library also takes care of
refreshing tokens: when a token is about to expire, a new one is
fetched, and connections re-authenticate.

Fixes #781
@acogoluegnes acogoluegnes marked this pull request as ready for review August 21, 2025 12:29
@acogoluegnes acogoluegnes added the enhancement New feature or request label Aug 21, 2025
@acogoluegnes acogoluegnes added this to the 1.3.0 milestone Aug 21, 2025
@acogoluegnes acogoluegnes merged commit 80fa1fa into main Aug 21, 2025
3 checks passed
@acogoluegnes acogoluegnes deleted the oauth2 branch August 21, 2025 12:30
github-actions bot pushed a commit that referenced this pull request Aug 21, 2025
Support OAuth2 authentication
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support OAuth 2 token retrieval and refresh
1 participant