Skip to content

Conversation

@SkyWalker-CMD
Copy link
Contributor

@SkyWalker-CMD SkyWalker-CMD commented Nov 11, 2025

Overview

Allow passing custom parameters to the GetResourceOauth2Token API via SDK decorator.

For some IdPs, such as Slack, non-standard OAuth2 parameters are used, such as user_scopes instead of scopes which is defined in the RFC: https://datatracker.ietf.org/doc/html/rfc6749#section-4.1.1

Passing custom parameters allows customers to pass any non-standard OAuth2 parameters via the SDK decorator, and unblocks the usage of bot actions with user_scopes for Slack and other IdPs.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

… SDK decorator

For some IdPs, such as Slack, non-standard OAuth2 parameters are used, such as `user_scopes`
instead of `scopes` which is defined in the RFC: https://datatracker.ietf.org/doc/html/rfc6749#section-4.1.1

Passing custom parameters allows customers to pass any non-standard OAuth2 parameters via the SDK
decorator, and unblocks the usage of bot actions with `user_scopes` for Slack and other IdPs.
@SkyWalker-CMD SkyWalker-CMD deployed to manual-approval November 11, 2025 14:29 — with GitHub Actions Active
fei-yuan
fei-yuan previously approved these changes Nov 12, 2025
@codecov-commenter
Copy link

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (main@67563f1). Learn more about missing BASE report.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #157   +/-   ##
=======================================
  Coverage        ?   90.31%           
=======================================
  Files           ?       25           
  Lines           ?     2706           
  Branches        ?      389           
=======================================
  Hits            ?     2444           
  Misses          ?      151           
  Partials        ?      111           
Flag Coverage Δ
unittests 90.31% <100.00%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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