Skip to content

[common.oauth] Simplify OAuth config - #1054

Merged
manugarg merged 5 commits into
mainfrom
oauth_http
Apr 4, 2025
Merged

manugarg merged 5 commits into
mainfrom
oauth_http

Conversation

@manugarg

@manugarg manugarg commented Apr 4, 2025 •

Copy link
Copy Markdown
Contributor

While writing documentation for OAuth I realized OAuth config doesn't flow nicely -- more specifically, bearer_token abstraction feels unnecessary.

This PR changes that. It's moving bearer_token fields outside, under oauth_config directly. We'll still continue to support bearer_token. It's not much burden as bearer_token implementation now uses the new implementation.

Old config:

oauth_config {
  bearer_token {
     file: ..
  }
}

New config (note: old config will still work):

oauth_config {
   file: ..
}

@manugarg
manugarg requested a review from Copilot April 4, 2025 07:09

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot reviewed 9 out of 9 changed files in this pull request and generated 1 comment.

Comments suppressed due to low confidence (1)

common/oauth/proto/config.proto:15

  • Typo detected: 'comand' should be corrected to 'command'.
    // Run a comand to obtain the token, e.g. (or similar)

Comment thread common/oauth/bearer.go Resolved
@manugarg
manugarg requested a review from Copilot April 4, 2025 07:34

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot reviewed 9 out of 9 changed files in this pull request and generated 1 comment.

Comment thread common/oauth/bearer.go Resolved
@manugarg
manugarg merged commit 08ad34f into main Apr 4, 2025
@manugarg
manugarg deleted the oauth_http branch April 4, 2025 17:58
@manugarg manugarg added this to the v0.14.0 milestone Apr 4, 2025
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