Skip to content

feat(methods): add oauth.v2.user.access method example - #404

Draft
zimeg wants to merge 3 commits into
mainfrom
zimeg-feat-oauth-v2-user-access-example
Draft

zimeg wants to merge 3 commits into
mainfrom
zimeg-feat-oauth-v2-user-access-example

Conversation

@zimeg

@zimeg zimeg commented Nov 18, 2026 •

Copy link
Copy Markdown
Member

Summary

This pull request adds a method example for oauth.v2.user.access in methods/src/oauth/v2/user/oauth_v2_user_access.py, and lists it in methods/README.md.

  • The arguments follow the order of the reference page, with its example values. It passes client_id, client_secret, and code, and leaves out the optional arguments for PKCE, refresh, and assertion grants.
  • This layer adds the oauth/v2/user/ app scaffold. The method needs no scopes, so the manifest lists none.

This is the only pull request in the oauth stack of method examples, so it's based on main. It's in the B6 oauth tokens batch.

  1. feat(methods): add oauth.v2.user.access method example #404 oauth.v2.user.access 👈 this pull request

Dependency

oauth.v2.user.access shipped in slack_sdk 3.49.0, and this PR bumps the methods pin to it.

Testing

With slack_sdk 3.49.0, which the methods pin now installs:

  1. cd methods/src/oauth/v2/user && slack install --environment local.
  2. Replace client_id, client_secret, and code with the app's credentials and a code from its user OAuth callback, then slack run oauth_v2_user_access.py and confirm an access_token with token_type user.

Live run: the example code returns invalid_code. Each example was run live in a developer workspace with a local slack_sdk build that has every method from these stacks.

🤖 Generated with Claude Code

Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
@zimeg
zimeg force-pushed the zimeg-feat-oauth-v2-user-access-example branch from a745f55 to 30bea5d Compare November 18, 2026 06:40
@zimeg
zimeg changed the base branch from zimeg-feat-oauth-v2-complete-short-token-rotation-example to main November 18, 2026 06:40
zimeg and others added 2 commits December 3, 2026 16:52
Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request python Pull requests that update python code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant