[GH-ISSUE #557] SFAuthenticationURLHandler and ASWebAuthenticationURLHandler are internal? #368

Closed
opened 2026-03-03 16:48:07 +03:00 by kerem · 3 comments
Owner

Originally created by @bobspryn on GitHub (Nov 8, 2019).
Original GitHub issue: https://github.com/OAuthSwift/OAuthSwift/issues/557

Description:

Curious why the two more "modern" handlers are not available without subclassing them?

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

Xcode version:

  • 11.x (Swift 5.1)

  • 10.x (Swift 5.0)

  • 10.x (Swift 4.1)

  • 9.3 (Swift 4.1)

  • 9.0 (Swift 4.0)

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

  • objective c

Originally created by @bobspryn on GitHub (Nov 8, 2019). Original GitHub issue: https://github.com/OAuthSwift/OAuthSwift/issues/557 ### Description: Curious why the two more "modern" handlers are not available without subclassing them? ### 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: - [ ] head - [ ] v2.1.0 - [x] v2.0.0 - [ ] v1.4.1 - [ ] v1.2 (Swift 4.0) - [ ] other: (Please fill in the version you are using.) ### Xcode version: - [x] 11.x (Swift 5.1) - [ ] 10.x (Swift 5.0) - [ ] 10.x (Swift 4.1) - [ ] 9.3 (Swift 4.1) - [ ] 9.0 (Swift 4.0) - [ ] other: (Please fill in the version you are using.) - [ ] objective c
kerem closed this issue 2026-03-03 16:48:07 +03:00
Author
Owner

@bobspryn commented on GitHub (Nov 8, 2019):

nvm, user error.

<!-- gh-comment-id:552000005 --> @bobspryn commented on GitHub (Nov 8, 2019): nvm, user error.
Author
Owner

@jonchui commented on GitHub (Apr 28, 2020):

VERSION:
OAuthSwift (2.0.0)

I must be hitting the same user error, b/c I'd to know the same thing?

I tried to use SFAuthenticationURLHandler by a basic subclass:

class GlooAuthURLHandler : SFAuthenticationURLHandler {
    
    override init(callbackUrlScheme: String) {
        super.init(callbackUrlScheme:callbackUrlScheme)
    }
}

But get the error:
'SFAuthenticationURLHandler' initializer is inaccessible due to 'internal' protection level

Removing the call to super.init results in the error:

'GlooAuthURLHandler' cannot be constructed because it has no accessible initializers

I feel like i must be missing something pretty basic? lol

<!-- gh-comment-id:620789989 --> @jonchui commented on GitHub (Apr 28, 2020): VERSION: `OAuthSwift (2.0.0)` I must be hitting the same user error, b/c I'd to know the same thing? I tried to use `SFAuthenticationURLHandler` by a basic subclass: ``` class GlooAuthURLHandler : SFAuthenticationURLHandler { override init(callbackUrlScheme: String) { super.init(callbackUrlScheme:callbackUrlScheme) } } ``` But get the error: `'SFAuthenticationURLHandler' initializer is inaccessible due to 'internal' protection level` Removing the call to `super.init` results in the error: `'GlooAuthURLHandler' cannot be constructed because it has no accessible initializers` I feel like i must be missing something pretty basic? lol
Author
Owner

@bobspryn commented on GitHub (Apr 28, 2020):

I believe I was using an older version. Try v 2.1.0

<!-- gh-comment-id:620819297 --> @bobspryn commented on GitHub (Apr 28, 2020): I believe I was using an older version. Try v 2.1.0
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#368
No description provided.