[GH-ISSUE #521] Properly logging out #341

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

Originally created by @nodediggity on GitHub (Mar 8, 2019).
Original GitHub issue: https://github.com/OAuthSwift/OAuthSwift/issues/521

Description:

Forgive me if I'm missing something obvious, once I have an authenticated session, how can I instruct OAuthSwift that I would like to log out a user out?

I was expecting to find a method somewhere that is almost the opposite of authorize so I may revoke tokens / clear state and redirect the user as appropriate.

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

Custom - Microsoft Identity Server

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.1
  • v1.2 (Swift 4.0)
  • v1.0.0
  • v0.6
  • other: (Please fill in the version you are using.)

Xcode version:

  • 9.3 (Swift 4.1)

  • 9.0 (Swift 4.0)

  • 9.0 (Swift 3.2)

  • 8.x (Swift 3.x)

  • 8.0 (Swift 2.3)

  • 7.3.1

  • other: 10.1 (Swift 4.2)

  • objective c

Originally created by @nodediggity on GitHub (Mar 8, 2019). Original GitHub issue: https://github.com/OAuthSwift/OAuthSwift/issues/521 ### Description: Forgive me if I'm missing something obvious, once I have an authenticated session, how can I instruct `OAuthSwift` that I would like to log out a user out? I was expecting to find a method somewhere that is almost the opposite of `authorize` so I may revoke tokens / clear state and redirect the user as appropriate. ### OAuth Provider? (Twitter, Github, ..): Custom - [Microsoft Identity Server](http://docs.identityserver.io/en/latest/) ### 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: - [x] head - [ ] v1.2.1 - [ ] v1.2 (Swift 4.0) - [ ] v1.0.0 - [ ] v0.6 - [ ] other: (Please fill in the version you are using.) ### Xcode version: - [ ] 9.3 (Swift 4.1) - [ ] 9.0 (Swift 4.0) - [ ] 9.0 (Swift 3.2) - [ ] 8.x (Swift 3.x) - [ ] 8.0 (Swift 2.3) - [ ] 7.3.1 - [x] other: 10.1 (Swift 4.2) - [ ] objective c
kerem closed this issue 2026-03-03 16:47:52 +03:00
Author
Owner

@nodediggity commented on GitHub (Mar 8, 2019):

Please close this issue, I have found exactly what I needed, thank you.

<!-- gh-comment-id:470993503 --> @nodediggity commented on GitHub (Mar 8, 2019): Please close this issue, I have found exactly what I needed, thank you.
Author
Owner

@phimage commented on GitHub (Mar 8, 2019):

There is no standard I think for that , depend on the provider.
See Wiki page about it

<!-- gh-comment-id:470993559 --> @phimage commented on GitHub (Mar 8, 2019): There is no standard I think for that , depend on the provider. See Wiki page about it
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#341
No description provided.