[GH-ISSUE #359] postOAuthRequestToken is inaccesible due to 'internal' protection level #228

Closed
opened 2026-03-03 16:46:51 +03:00 by kerem · 1 comment
Owner

Originally created by @megifernanda on GitHub (Apr 6, 2017).
Original GitHub issue: https://github.com/OAuthSwift/OAuthSwift/issues/359

Description:

help me sir, my project still work if i run but if i clean project i got sign red error

postOAuthRequestToken is inaccesible due to 'internal' protection level

  `self.oauthswift = OAuth1Swift.init(consumerKey: "****.",
                                       consumerSecret: "****",
                                       requestTokenUrl: "https://oauth.8villages.com/tokens/request-token",
                                       authorizeUrl: "8villages://app/?oauth_token_secret=",
                                       accessTokenUrl: "https://accounts.8villages.com/tokens/access-token")

    self.oauthswift?.authorizeURLHandler = OAuthSwiftOpenURLExternally.sharedInstance
    self.oauthswift?.allowMissingOAuthVerifier = true
    
    self.oauthswift?.postOAuthRequestToken(
        callbackURL: fileUrl as! URL,
        success: { credentials, response, parameters in`


   }, failure: { error in
        print("the error is", error.description, error.errorCode)
    });

i got error with this line

self.oauthswift?.postOAuthRequestToken(

before, i fork OAuthSwift.xcodeproject to edit OAuth1swift for Open Func postOAuthRequestToken

my problem is i got error postOAuthRequestToken is inaccesible due to 'internal' protection level if i clean project but if run my project still work

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

Xcode version:

  • 8.0 (Swift 3.0)

  • 8.0 (Swift 2.3)

  • 7.3.1

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

  • objective c

Originally created by @megifernanda on GitHub (Apr 6, 2017). Original GitHub issue: https://github.com/OAuthSwift/OAuthSwift/issues/359 ### Description: help me sir, my project still work if i run but if i clean project i got sign red error > postOAuthRequestToken is inaccesible due to 'internal' protection level `self.oauthswift = OAuth1Swift.init(consumerKey: "****.", consumerSecret: "****", requestTokenUrl: "https://oauth.8villages.com/tokens/request-token", authorizeUrl: "8villages://app/?oauth_token_secret=", accessTokenUrl: "https://accounts.8villages.com/tokens/access-token") self.oauthswift?.authorizeURLHandler = OAuthSwiftOpenURLExternally.sharedInstance self.oauthswift?.allowMissingOAuthVerifier = true self.oauthswift?.postOAuthRequestToken( callbackURL: fileUrl as! URL, success: { credentials, response, parameters in` }, failure: { error in print("the error is", error.description, error.errorCode) }); i got error with this line **_self.oauthswift?.postOAuthRequestToken(_** before, i fork OAuthSwift.xcodeproject to edit OAuth1swift for Open Func postOAuthRequestToken my problem is i got error **postOAuthRequestToken is inaccesible due to 'internal' protection level** if i clean project but if run my project still work ### OAuth Provider (Twitter, Github, ..): ### OAuth Version: - [x] Version 1 - [ ] Version 2 ### OS (Please fill the version) : - [x] iOS : - [ ] OSX : - [ ] TVOS : - [ ] WatchOS : ### Installation method: - [x] Carthage - [ ] CocoaPods - [ ] Manually ### Library version: - [ ] head - [ ] v1.0.0 - [ ] v0.6 - [x] other: (Please fill in the version you are using.) ### Xcode version: - [x] 8.0 (Swift 3.0) - [ ] 8.0 (Swift 2.3) - [ ] 7.3.1 - [ ] other: (Please fill in the version you are using.) - [ ] objective c
kerem 2026-03-03 16:46:51 +03:00
  • closed this issue
  • added the
    question
    label
Author
Owner

@phimage commented on GitHub (Apr 10, 2017):

internal method, don't call it

<!-- gh-comment-id:292925972 --> @phimage commented on GitHub (Apr 10, 2017): internal method, don't call 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#228
No description provided.