[GH-ISSUE #423] How can I get authentication code to pass to backend? #272

Closed
opened 2026-03-03 16:47:16 +03:00 by kerem · 5 comments
Owner

Originally created by @najmul-csebuet on GitHub (Dec 14, 2017).
Original GitHub issue: https://github.com/OAuthSwift/OAuthSwift/issues/423

Description:

When this library goes for authentication, it is returning me an access token, refresh token and an id token. But I just need auth code which I will pass to our backend. How will you do that using this library?
Thanks

OAuth Provider (Twitter, Github, ..):

OAuth Version:

  • Version 1
  • Version 2

OS (Please fill the version) :

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

Installation method:

  • Carthage
  • CocoaPods
  • Manually

Library version:

  • head
  • v1.2 (Swift 4.0)
  • v1.0.0
  • v0.6
  • other: (Please fill in the version you are using.)

Xcode version:

  • 9.0 (Swift 4.0)

  • 9.0 (Swift 3.2)

  • 8.x (Swift 3.x)

  • 8.0 (Swift 2.3)

  • 7.3.1

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

  • objective c

Originally created by @najmul-csebuet on GitHub (Dec 14, 2017). Original GitHub issue: https://github.com/OAuthSwift/OAuthSwift/issues/423 ### Description: When this library goes for authentication, it is returning me an access token, refresh token and an id token. But I just need auth code which I will pass to our backend. How will you do that using this library? Thanks ### OAuth Provider (Twitter, Github, ..): ### OAuth Version: - [ ] Version 1 - [x] Version 2 ### OS (Please fill the version) : - [x] iOS : - [ ] OSX : - [ ] TVOS : - [ ] WatchOS : ### Installation method: - [ ] Carthage - [x] CocoaPods - [ ] Manually ### Library version: - [ ] head - [ ] v1.2 (Swift 4.0) - [ ] v1.0.0 - [ ] v0.6 - [x] other: (Please fill in the version you are using.) ### Xcode version: - [ ] 9.0 (Swift 4.0) - [ ] 9.0 (Swift 3.2) - [x] 8.x (Swift 3.x) - [ ] 8.0 (Swift 2.3) - [ ] 7.3.1 - [ ] other: (Please fill in the version you are using.) - [ ] objective c
kerem closed this issue 2026-03-03 16:47:17 +03:00
Author
Owner

@phimage commented on GitHub (Dec 14, 2017):

Just a title?
Please give more information in description

<!-- gh-comment-id:351768433 --> @phimage commented on GitHub (Dec 14, 2017): Just a title? Please give more information in description
Author
Owner

@najmul-csebuet commented on GitHub (Dec 15, 2017):

Hi @phimage, just updated issue with some description.

<!-- gh-comment-id:351904522 --> @najmul-csebuet commented on GitHub (Dec 15, 2017): Hi @phimage, just updated issue with some description.
Author
Owner

@phimage commented on GitHub (Dec 15, 2017):

Create a new class which extends OAuth2Swift and override method postOAuthAccessTokenWithRequestToken(byCode....

<!-- gh-comment-id:351931618 --> @phimage commented on GitHub (Dec 15, 2017): Create a new class which extends OAuth2Swift and override method postOAuthAccessTokenWithRequestToken(byCode....
Author
Owner

@najmul-csebuet commented on GitHub (Dec 15, 2017):

hmm, good idea. but seems overriding not possible. can you pls check also @phimage

<!-- gh-comment-id:351957740 --> @najmul-csebuet commented on GitHub (Dec 15, 2017): hmm, good idea. but seems overriding not possible. can you pls check also @phimage
Author
Owner

@phimage commented on GitHub (Dec 15, 2017):

The method is ´open’ , and the class I think too

<!-- gh-comment-id:351964988 --> @phimage commented on GitHub (Dec 15, 2017): The method is ´open’ , and the class I think too
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#272
No description provided.