From d01cf9f1b8d602b5db463c1fe1b2d3939ed8c27a Mon Sep 17 00:00:00 2001 From: Kevin McKee Date: Sat, 31 May 2025 09:57:31 -0700 Subject: [PATCH 1/2] Bumping the kit version and new sample providers. --- OAuthSample.xcodeproj/project.pbxproj | 23 +++++++++++++++-------- 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/OAuthSample.xcodeproj/project.pbxproj b/OAuthSample.xcodeproj/project.pbxproj index 4901a25..2ecd5d3 100644 --- a/OAuthSample.xcodeproj/project.pbxproj +++ b/OAuthSample.xcodeproj/project.pbxproj @@ -13,7 +13,8 @@ CE1FE0C22BF66AC500078EB1 /* Preview Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = CE1FE0C12BF66AC500078EB1 /* Preview Assets.xcassets */; }; CE1FE0CA2BF66B6E00078EB1 /* OAuthKit in Frameworks */ = {isa = PBXBuildFile; productRef = CE1FE0C92BF66B6E00078EB1 /* OAuthKit */; }; CE1FE0CD2BF6F73000078EB1 /* oauth.json in Resources */ = {isa = PBXBuildFile; fileRef = CE1FE0CC2BF6F73000078EB1 /* oauth.json */; }; - CEDA2AD62DE91FC200F8E36B /* OAuthKit in Frameworks */ = {isa = PBXBuildFile; productRef = CEDA2AD52DE91FC200F8E36B /* OAuthKit */; }; + CE65D4F52DEB6C4A00A24D2A /* OAuthKit in Frameworks */ = {isa = PBXBuildFile; productRef = CE65D4F42DEB6C4A00A24D2A /* OAuthKit */; }; + CEC9CBB62DE946EF00F181DF /* OAuthKit in Frameworks */ = {isa = PBXBuildFile; productRef = CEC9CBB52DE946EF00F181DF /* OAuthKit */; }; /* End PBXBuildFile section */ /* Begin PBXFileReference section */ @@ -33,7 +34,8 @@ buildActionMask = 2147483647; files = ( CE1FE0CA2BF66B6E00078EB1 /* OAuthKit in Frameworks */, - CEDA2AD62DE91FC200F8E36B /* OAuthKit in Frameworks */, + CEC9CBB62DE946EF00F181DF /* OAuthKit in Frameworks */, + CE65D4F52DEB6C4A00A24D2A /* OAuthKit in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -96,7 +98,8 @@ name = OAuthSample; packageProductDependencies = ( CE1FE0C92BF66B6E00078EB1 /* OAuthKit */, - CEDA2AD52DE91FC200F8E36B /* OAuthKit */, + CEC9CBB52DE946EF00F181DF /* OAuthKit */, + CE65D4F42DEB6C4A00A24D2A /* OAuthKit */, ); productName = OAuthSample; productReference = CE1FE0B62BF66AC400078EB1 /* OAuthSample.app */; @@ -127,7 +130,7 @@ ); mainGroup = CE1FE0AD2BF66AC400078EB1; packageReferences = ( - CEDA2AD42DE91FC200F8E36B /* XCRemoteSwiftPackageReference "OAuthKit" */, + CE65D4F32DEB6C4A00A24D2A /* XCRemoteSwiftPackageReference "OAuthKit" */, ); productRefGroup = CE1FE0B72BF66AC400078EB1 /* Products */; projectDirPath = ""; @@ -386,12 +389,12 @@ /* End XCConfigurationList section */ /* Begin XCRemoteSwiftPackageReference section */ - CEDA2AD42DE91FC200F8E36B /* XCRemoteSwiftPackageReference "OAuthKit" */ = { + CE65D4F32DEB6C4A00A24D2A /* XCRemoteSwiftPackageReference "OAuthKit" */ = { isa = XCRemoteSwiftPackageReference; repositoryURL = "https://github.com/codefiesta/OAuthKit.git"; requirement = { kind = upToNextMajorVersion; - minimumVersion = 0.0.6; + minimumVersion = 0.1.1; }; }; /* End XCRemoteSwiftPackageReference section */ @@ -401,9 +404,13 @@ isa = XCSwiftPackageProductDependency; productName = OAuthKit; }; - CEDA2AD52DE91FC200F8E36B /* OAuthKit */ = { + CE65D4F42DEB6C4A00A24D2A /* OAuthKit */ = { + isa = XCSwiftPackageProductDependency; + package = CE65D4F32DEB6C4A00A24D2A /* XCRemoteSwiftPackageReference "OAuthKit" */; + productName = OAuthKit; + }; + CEC9CBB52DE946EF00F181DF /* OAuthKit */ = { isa = XCSwiftPackageProductDependency; - package = CEDA2AD42DE91FC200F8E36B /* XCRemoteSwiftPackageReference "OAuthKit" */; productName = OAuthKit; }; /* End XCSwiftPackageProductDependency section */ From 139232f25d34a18e79fdf571937de8753bf840e8 Mon Sep 17 00:00:00 2001 From: Kevin McKee Date: Sat, 31 May 2025 10:02:00 -0700 Subject: [PATCH 2/2] Sample configs. --- OAuthSample/Preview Content/oauth.json | 54 ++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) diff --git a/OAuthSample/Preview Content/oauth.json b/OAuthSample/Preview Content/oauth.json index 4a5f08b..0a12ddd 100644 --- a/OAuthSample/Preview Content/oauth.json +++ b/OAuthSample/Preview Content/oauth.json @@ -11,5 +11,59 @@ "user", "repo" ] + }, + { + "id": "Google", + "authorizationURL": "https://accounts.google.com/o/oauth2/v2/auth", + "accessTokenURL": "https://oauth2.googleapis.com/token", + "deviceCodeURL": "https://oauth2.googleapis.com/device/code", + "clientID": "CLIENT_ID", + "clientSecret": "CLIENT_SECRET", + "redirectURI": "https://github.com/codefiesta/", + "scope": [ + "email", + "profile", + "openid" + ] + }, + { + "id": "Microsoft", + "authorizationURL": "https://login.microsoftonline.com/consumers/oauth2/v2.0/authorize", + "accessTokenURL": "https://login.microsoftonline.com/consumers/oauth2/v2.0/token", + "clientID": "CLIENT_ID", + "clientSecret": "CLIENT_SECRET", + "redirectURI": "https://github.com/codefiesta/", + "scope": [ + "email", + "profile", + "openid" + ] + }, + { + "id": "Slack", + "authorizationURL": "https://slack.com/oauth/v2/authorize", + "accessTokenURL": "https://slack.com/api/oauth.v2.access", + "clientID": "CLIENT_ID", + "clientSecret": "CLIENT_SECRET", + "redirectURI": "https://github.com/codefiesta/", + "customUserAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.5 Safari/605.1.15", + "scope": [ + "incoming-webhook" + ] + }, + { + "id": "LinkedIn", + "authorizationURL": "https://www.linkedin.com/oauth/v2/authorization", + "accessTokenURL": "https://www.linkedin.com/oauth/v2/accessToken", + "clientID": "CLIENT_ID", + "clientSecret": "CLIENT_SECRET", + "redirectURI": "https://www.linkedin.com/developers/tools/oauth/redirect", + "encodeHttpBody": false, + "scope": [ + "email", + "profile", + "openid" + ] } + ]