[GH-ISSUE #370] 2-legged authorization #237

Closed
opened 2026-03-03 16:46:56 +03:00 by kerem · 3 comments
Owner

Originally created by @zishanj on GitHub (May 5, 2017).
Original GitHub issue: https://github.com/OAuthSwift/OAuthSwift/issues/370

Description:

Any working example with 2-legged OAuth2 authorization of Google services account?

OAuth Provider (Google Services account):

OAuth Version:

  • Version 1
  • [x ] Version 2

OS (Please fill the version) :

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

Installation method:

  • Carthage
  • [x ] CocoaPods
  • Manually

Library version:

  • head
  • [x ] 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 @zishanj on GitHub (May 5, 2017). Original GitHub issue: https://github.com/OAuthSwift/OAuthSwift/issues/370 ### Description: Any working example with 2-legged OAuth2 authorization of Google services account? ### OAuth Provider (Google Services account): ### 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 - [x ] v1.0.0 - [ ] v0.6 - [ ] 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 closed this issue 2026-03-03 16:46:57 +03:00
Author
Owner

@zishanj commented on GitHub (May 5, 2017):

the Google provide us with following JSON file:

{
"type": "service_account",
"project_id": "afsfsa",
"private_key_id": "24324",
"private_key": "-----BEGIN PRIVATE KEY-----\nsdfsafasf==\n-----END PRIVATE KEY-----\n",
"client_email": "asdfsaf.iam.gserviceaccount.com",
"client_id": "234324234242",
"auth_uri": "https://accounts.google.com/o/oauth2/auth",
"token_uri": "https://accounts.google.com/o/oauth2/token",
"auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs",
"client_x509_cert_url": "http://asdfasfa.iam.gserviceaccount.com"
}

<!-- gh-comment-id:299470547 --> @zishanj commented on GitHub (May 5, 2017): the Google provide us with following JSON file: { "type": "service_account", "project_id": "afsfsa", "private_key_id": "24324", "private_key": "-----BEGIN PRIVATE KEY-----\nsdfsafasf==\n-----END PRIVATE KEY-----\n", "client_email": "asdfsaf.iam.gserviceaccount.com", "client_id": "234324234242", "auth_uri": "https://accounts.google.com/o/oauth2/auth", "token_uri": "https://accounts.google.com/o/oauth2/token", "auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs", "client_x509_cert_url": "http://asdfasfa.iam.gserviceaccount.com" }
Author
Owner

@oshitub123 commented on GitHub (May 10, 2017):

what it is, what is your question?

<!-- gh-comment-id:300630655 --> @oshitub123 commented on GitHub (May 10, 2017): what it is, what is your question?
Author
Owner

@phimage commented on GitHub (Jun 4, 2017):

please give more informations

  • your code which failed
  • the documentation link
    I close until you provide it

because I cannot guess if you are talking about jwt, server to server https://developers.google.com/identity/protocols/OAuth2ServiceAccount

<!-- gh-comment-id:306029014 --> @phimage commented on GitHub (Jun 4, 2017): please give more informations - your code which failed - the documentation link I close until you provide it because I cannot guess if you are talking about jwt, server to server https://developers.google.com/identity/protocols/OAuth2ServiceAccount
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#237
No description provided.