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

feat: add support for OAuth PATs #1387

Merged
merged 11 commits into from
Jan 30, 2025

Conversation

thedadams
Copy link
Contributor

Instead of configuring and using OAuth, an app can specify that it supports using personal access tokens. If this is the case, then Obot will pass an extra environment variable to the oauth credential tool to indicate which integrations support tokens. If the oauth2 credential tool should prompt the user for a token instead of using OAuth, then Obot will not pass the environment variables that feed the URLs to the tool.

A side effect of this change is that OAuth apps no longer default to global.

Issue: #1372
Requires: obot-platform/tools#361

@thedadams thedadams force-pushed the add-pat-to-oauth branch 4 times, most recently from 1b90511 to aea8d2f Compare January 22, 2025 16:00
@StrongMonkey
Copy link
Contributor

A side effect of this change is that OAuth apps no longer default to global.

What does this mean?

@thedadams
Copy link
Contributor Author

A side effect of this change is that OAuth apps no longer default to global.

Right now, every OAuth app that is created is available to every agent/workflow. After this change, that will no longer be the case. Agents and workflows must explicitly designate which OAuth apps they want to use on their oauthApps field.

Copy link
Contributor

@ivyjeong13 ivyjeong13 left a comment

Choose a reason for hiding this comment

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

👍 Checked integration -> alias changes and tested!

thedadams and others added 11 commits January 29, 2025 18:49
Instead of configuring and using OAuth, an app can specify that it
supports using personal access tokens. If this is the case, then Obot
will pass an extra environment variable to the oauth credential tool to
indicate which integrations support tokens. If the oauth2 credential
tool should prompt the user for a token instead of using OAuth, then
Obot will not pass the environment variables that feed the URLs to the
tool.

A side effect of this change is that OAuth apps no longer default to
global.

Signed-off-by: Donnie Adams <[email protected]>
Signed-off-by: Donnie Adams <[email protected]>
Signed-off-by: Donnie Adams <[email protected]>
@thedadams thedadams merged commit 8761cb8 into obot-platform:main Jan 30, 2025
3 checks passed
@thedadams thedadams deleted the add-pat-to-oauth branch January 30, 2025 00:17
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.

4 participants