[GH-ISSUE #687] does Slack api return User Token? #445

Closed
opened 2026-03-03 16:48:44 +03:00 by kerem · 1 comment
Owner

Originally created by @vincent-k-sm on GitHub (Dec 10, 2021).
Original GitHub issue: https://github.com/OAuthSwift/OAuthSwift/issues/687

Description:

OAuth Provider? (Twitter, Github, ..):

Slack

OAuth Version:

  • Version 1
  • Version 2

OS (Please fill the version) :

  • iOS :
  • OSX :
  • TVOS :
  • WatchOS :

Installation method:

  • Carthage
  • CocoaPods
  • Swift Package Manager
  • Manually

Library version:

  • head
  • v2.1.0
  • v2.0.0
  • v1.4.1
  • other: (Please fill in the version you are using.)

Xcode version:

  • 11.4 (Swift 5.2)

  • 11.x (Swift 5.1)

  • 10.x (Swift 5.0)

  • other: (Please fill in the version you are using.)

  • objective c

i succeed for bot access token by prefix xoxb but how can i get User OAuth Token prefixxoxp
plz help :(

ps. demo need update to v2

authorizeUrl:   "https://slack.com/oauth/v2/authorize",
accessTokenUrl: "https://slack.com/api/oauth.v2.access",

i found result in https://api.slack.com/methods/oauth.v2.access
and my scope is
"channels:history,channels:read,chat:write,groups:read,im:history,im:read,mpim:history,mpim:read,users:write,channels:history,channels:join,chat:write,chat:write.customize,groups:history,im:history,mpim:history,im:read,mpim:read,groups:read,channels:read"

Originally created by @vincent-k-sm on GitHub (Dec 10, 2021). Original GitHub issue: https://github.com/OAuthSwift/OAuthSwift/issues/687 ### Description: ### OAuth Provider? (Twitter, Github, ..): Slack ### OAuth Version: - [ ] Version 1 - [X] Version 2 ### OS (Please fill the version) : - [x] iOS : - [ ] OSX : - [ ] TVOS : - [ ] WatchOS : ### Installation method: - [ ] Carthage - [X] CocoaPods - [ ] Swift Package Manager - [ ] Manually ### Library version: - [X] head - [ ] v2.1.0 - [ ] v2.0.0 - [ ] v1.4.1 - [ ] other: (Please fill in the version you are using.) ### Xcode version: - [X] 11.4 (Swift 5.2) - [ ] 11.x (Swift 5.1) - [ ] 10.x (Swift 5.0) - [ ] other: (Please fill in the version you are using.) - [ ] objective c i succeed for bot access token by prefix `xoxb` but how can i get User OAuth Token prefix`xoxp` plz help :( ps. demo need update to v2 ``` authorizeUrl: "https://slack.com/oauth/v2/authorize", accessTokenUrl: "https://slack.com/api/oauth.v2.access", ``` i found result in https://api.slack.com/methods/oauth.v2.access and my scope is `"channels:history,channels:read,chat:write,groups:read,im:history,im:read,mpim:history,mpim:read,users:write,channels:history,channels:join,chat:write,chat:write.customize,groups:history,im:history,mpim:history,im:read,mpim:read,groups:read,channels:read"`
kerem closed this issue 2026-03-03 16:48:44 +03:00
Author
Owner

@vincent-k-sm commented on GitHub (Dec 10, 2021):

update :
it comes xoxp- when authorizeUrl init https://slack.com/oauth/v2/authorize?user_scope=identity.basic
maybe OAuthSwiftCredential model has to update?

<!-- gh-comment-id:991123580 --> @vincent-k-sm commented on GitHub (Dec 10, 2021): update : it comes `xoxp-` when authorizeUrl init `https://slack.com/oauth/v2/authorize?user_scope=identity.basic` maybe `OAuthSwiftCredential` model has to update?
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/OAuthSwift#445
No description provided.