Skip to content

Commit 32d9182

Browse files
committed
WIP
1 parent 507a1e3 commit 32d9182

File tree

5 files changed

+69
-14
lines changed

5 files changed

+69
-14
lines changed

‎app/views/Authentication/Demos/Providers.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export class Providers extends React.Component {
2626
return (evt) => {
2727
console.log('loginWith', provider);
2828
this.manager
29-
.authorize(provider, {})
29+
.authorize(provider, {scopes: 'profile email'})
3030
.then(resp => {
3131
console.log('response ->', resp);
3232
})

‎config/development.ios.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,20 @@
11
module.exports = {
22
firestack: {
33
debug: '*',
4+
},
5+
auth: {
6+
twitter: {
7+
consumer_key: 'zPHsq6KkaYjPUJTz1WIvKEeu9',
8+
consumer_secret: 'mp6dFEF99KQNqJ03cG9WrV9R7yz5ShWXoidemlRMZiGy3EuTBm'
9+
},
10+
facebook: {
11+
client_id: '1745641015707619',
12+
client_secret: 'e90d8c9f1ef9fc00cb8053997df6f4fd'
13+
},
14+
google: {
15+
callback_url: `io.fullstack.FirestackExample:/oauth2redirect`,
16+
client_id: '223760557072-t6ine4mmot5ejmfg96k3huoqg9jsppnl.apps.googleusercontent.com',
17+
client_secret: '8lgvHRb5UdOJ0gD6_xTFC_sK'
18+
}
419
}
520
}

‎ios/FirestackApp.xcodeproj/project.pbxproj

Lines changed: 35 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
};
66
objectVersion = 46;
77
objects = {
8+
89
/* Begin PBXBuildFile section */
910
00C302E51ABCBA2D00DB3ED1 /* libRCTActionSheet.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302AC1ABCB8CE00DB3ED1 /* libRCTActionSheet.a */; };
1011
00C302E71ABCBA2D00DB3ED1 /* libRCTGeolocation.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302BA1ABCB90400DB3ED1 /* libRCTGeolocation.a */; };
@@ -119,6 +120,13 @@
119120
remoteGlobalIDString = 58B5119B1A9E6C1200147676;
120121
remoteInfo = RCTText;
121122
};
123+
D92A80AE1DA902B400EFDC2C /* PBXContainerItemProxy */ = {
124+
isa = PBXContainerItemProxy;
125+
containerPortal = 8108D6CBBAC940E79F7B2091 /* OAuthManager.xcodeproj */;
126+
proxyType = 2;
127+
remoteGlobalIDString = D92A80A91DA902B400EFDC2C;
128+
remoteInfo = OAuthManager;
129+
};
122130
D952A59D1D9E7F3700A9C369 /* PBXContainerItemProxy */ = {
123131
isa = PBXContainerItemProxy;
124132
containerPortal = DB12A55C1C7B48E6B67B7F38 /* Firestack.xcodeproj */;
@@ -177,6 +185,7 @@
177185
621F832D582B499B8F88D567 /* Zocial.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 0; includeInIndex = 0; lastKnownFileType = unknown; name = Zocial.ttf; path = "../node_modules/react-native-vector-icons/Fonts/Zocial.ttf"; sourceTree = "<group>"; };
178186
78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTLinking.xcodeproj; path = "../node_modules/react-native/Libraries/LinkingIOS/RCTLinking.xcodeproj"; sourceTree = "<group>"; };
179187
7B96D879A35F8CCE9DDE1AF3 /* libPods-FirestackApp.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-FirestackApp.a"; sourceTree = BUILT_PRODUCTS_DIR; };
188+
8108D6CBBAC940E79F7B2091 /* OAuthManager.xcodeproj */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 0; includeInIndex = 0; lastKnownFileType = "wrapper.pb-project"; name = OAuthManager.xcodeproj; path = "../node_modules/react-native-oauth/ios/OAuthManager.xcodeproj"; sourceTree = "<group>"; };
180189
832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTText.xcodeproj; path = "../node_modules/react-native/Libraries/Text/RCTText.xcodeproj"; sourceTree = "<group>"; };
181190
83DD9D687A23CFF859FC5C80 /* Pods-FirestackApp.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-FirestackApp.debug.xcconfig"; path = "Pods/Target Support Files/Pods-FirestackApp/Pods-FirestackApp.debug.xcconfig"; sourceTree = "<group>"; };
182191
92260FFCC5A41B4324C2DE1D /* Pods-FirestackApp.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-FirestackApp.release.xcconfig"; path = "Pods/Target Support Files/Pods-FirestackApp/Pods-FirestackApp.release.xcconfig"; sourceTree = "<group>"; };
@@ -349,6 +358,7 @@
349358
139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */,
350359
5D4DBCF5A4BA4854BBD023F0 /* RNVectorIcons.xcodeproj */,
351360
DB12A55C1C7B48E6B67B7F38 /* Firestack.xcodeproj */,
361+
8108D6CBBAC940E79F7B2091 /* OAuthManager.xcodeproj */,
352362
);
353363
name = Libraries;
354364
sourceTree = "<group>";
@@ -423,6 +433,14 @@
423433
name = Frameworks;
424434
sourceTree = "<group>";
425435
};
436+
D92A80AA1DA902B400EFDC2C /* Products */ = {
437+
isa = PBXGroup;
438+
children = (
439+
D92A80AF1DA902B400EFDC2C /* libOAuthManager.a */,
440+
);
441+
name = Products;
442+
sourceTree = "<group>";
443+
};
426444
D952A59A1D9E7F3700A9C369 /* Products */ = {
427445
isa = PBXGroup;
428446
children = (
@@ -516,6 +534,10 @@
516534
ProductGroup = D952A59A1D9E7F3700A9C369 /* Products */;
517535
ProjectRef = DB12A55C1C7B48E6B67B7F38 /* Firestack.xcodeproj */;
518536
},
537+
{
538+
ProductGroup = D92A80AA1DA902B400EFDC2C /* Products */;
539+
ProjectRef = 8108D6CBBAC940E79F7B2091 /* OAuthManager.xcodeproj */;
540+
},
519541
{
520542
ProductGroup = 00C302A81ABCB8CE00DB3ED1 /* Products */;
521543
ProjectRef = 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */;
@@ -640,6 +662,13 @@
640662
remoteRef = 832341B41AAA6A8300B99B32 /* PBXContainerItemProxy */;
641663
sourceTree = BUILT_PRODUCTS_DIR;
642664
};
665+
D92A80AF1DA902B400EFDC2C /* libOAuthManager.a */ = {
666+
isa = PBXReferenceProxy;
667+
fileType = archive.ar;
668+
path = libOAuthManager.a;
669+
remoteRef = D92A80AE1DA902B400EFDC2C /* PBXContainerItemProxy */;
670+
sourceTree = BUILT_PRODUCTS_DIR;
671+
};
643672
D952A59E1D9E7F3700A9C369 /* libFirestack.a */ = {
644673
isa = PBXReferenceProxy;
645674
fileType = archive.ar;
@@ -654,13 +683,6 @@
654683
remoteRef = D99ACF581D8E202600D391A9 /* PBXContainerItemProxy */;
655684
sourceTree = BUILT_PRODUCTS_DIR;
656685
};
657-
D9F6DC6A1DA8E5D500D10561 /* libOAuthManager.a */ = {
658-
isa = PBXReferenceProxy;
659-
fileType = archive.ar;
660-
path = libOAuthManager.a;
661-
remoteRef = D9F6DC691DA8E5D500D10561 /* PBXContainerItemProxy */;
662-
sourceTree = BUILT_PRODUCTS_DIR;
663-
};
664686
/* End PBXReferenceProxy section */
665687

666688
/* Begin PBXResourcesBuildPhase section */
@@ -853,8 +875,9 @@
853875
"$(SRCROOT)/../node_modules/react-native/React/**",
854876
"$(SRCROOT)/../node_modules/react-native-vector-icons/RNVectorIconsManager",
855877
"$(SRCROOT)/../node_modules/react-native-firestack/ios/Firestack",
856-
"$(SRCROOT)/../node_modules/react-native-oauth/ios/**",
857878
"$(SRCROOT)/../node_modules/react-native/Libraries/LinkingiOS",
879+
"$(SRCROOT)/../node_modules/react-native-oauth/ios/OAuthManager",
880+
"$(SRCROOT)/../node_modules/react-native-oauth/ios/**",
858881
);
859882
INFOPLIST_FILE = FirestackApp/Info.plist;
860883
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
@@ -896,8 +919,9 @@
896919
"$(SRCROOT)/../node_modules/react-native/React/**",
897920
"$(SRCROOT)/../node_modules/react-native-vector-icons/RNVectorIconsManager",
898921
"$(SRCROOT)/../node_modules/react-native-firestack/ios/Firestack",
899-
"$(SRCROOT)/../node_modules/react-native-oauth/ios/**",
900922
"$(SRCROOT)/../node_modules/react-native/Libraries/LinkingiOS",
923+
"$(SRCROOT)/../node_modules/react-native-oauth/ios/OAuthManager",
924+
"$(SRCROOT)/../node_modules/react-native-oauth/ios/**",
901925
);
902926
INFOPLIST_FILE = FirestackApp/Info.plist;
903927
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
@@ -959,6 +983,7 @@
959983
"$(SRCROOT)/../node_modules/react-native-vector-icons/RNVectorIconsManager",
960984
"$(SRCROOT)/../node_modules/react-native-firestack/ios/Firestack/**",
961985
"$(SRCROOT)/../node_modules/react-native-firestack/ios/Firestack",
986+
"$(SRCROOT)/../node_modules/react-native-oauth/ios/OAuthManager",
962987
"$(SRCROOT)/../node_modules/react-native-oauth/ios/**",
963988
);
964989
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
@@ -1003,6 +1028,7 @@
10031028
"$(SRCROOT)/../node_modules/react-native-vector-icons/RNVectorIconsManager",
10041029
"$(SRCROOT)/../node_modules/react-native-firestack/ios/Firestack/**",
10051030
"$(SRCROOT)/../node_modules/react-native-firestack/ios/Firestack",
1031+
"$(SRCROOT)/../node_modules/react-native-oauth/ios/OAuthManager",
10061032
"$(SRCROOT)/../node_modules/react-native-oauth/ios/**",
10071033
);
10081034
IPHONEOS_DEPLOYMENT_TARGET = 8.0;

‎ios/FirestackApp/AppDelegate.m

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,7 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(
3131
UIViewController *rootViewController = [UIViewController new];
3232
rootViewController.view = rootView;
3333

34-
[OAuthManager setupOAuthHandler:application
35-
andDelegate:self
36-
view:rootView];
34+
[OAuthManager setupOAuthHandler:application];
3735

3836
self.window.rootViewController = rootViewController;
3937
[self.window makeKeyAndVisible];

‎ios/FirestackApp/Info.plist

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,17 @@
2424
<key>CFBundleTypeRole</key>
2525
<string>Editor</string>
2626
<key>CFBundleURLName</key>
27-
<string>io.fullstack.FirestackExample</string>
27+
<string>facebook</string>
28+
<key>CFBundleURLSchemes</key>
29+
<array>
30+
<string>fb1745641015707619</string>
31+
</array>
32+
</dict>
33+
<dict>
34+
<key>CFBundleTypeRole</key>
35+
<string>Editor</string>
36+
<key>CFBundleURLName</key>
37+
<string>custom</string>
2838
<key>CFBundleURLSchemes</key>
2939
<array>
3040
<string>firestackexample</string>
@@ -33,6 +43,12 @@
3343
</array>
3444
<key>CFBundleVersion</key>
3545
<string>76</string>
46+
<key>LSApplicationQueriesSchemes</key>
47+
<array>
48+
<string>fbauth2</string>
49+
<string>fb1745641015707619</string>
50+
<string>fbauth</string>
51+
</array>
3652
<key>LSRequiresIPhoneOS</key>
3753
<true/>
3854
<key>NSAppTransportSecurity</key>

0 commit comments

Comments
 (0)