forked from e-mission/cordova-jwt-auth
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplugin.xml
More file actions
112 lines (96 loc) · 4.94 KB
/
Copy pathplugin.xml
File metadata and controls
112 lines (96 loc) · 4.94 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
<?xml version="1.0" encoding="utf-8"?>
<plugin xmlns="http://www.phonegap.com/ns/plugins/1.0"
id="edu.berkeley.eecs.emission.cordova.auth"
version="1.5.0">
<name>JWTAuth</name>
<description>Get the user email and associated JWT tokens from both native
code and javascript. These are merged since the typical OAuth/JWT
process returns both the email address that the user logged in as, as a
token that encodes that value. </description>
<author>K. Shankari (shankari@eecs.berkeley.edu)</author>
<license>Modified BSD license</license>
<engines>
<engine name="cordova" version=">=3.6.0"/>
</engines>
<asset src="www/jwtauth.js" target="js/jwtauth.js"/>
<js-module src="www/jwtauth.js" name="jwtauth">
<clobbers target="cordova.plugins.BEMJWTAuth" />
</js-module>
<!--
<dependency id="edu.berkeley.eecs.emission.cordova.unifiedlogger"
url="https://github.com/e-mission/cordova-unified-logger.git"/>
<dependency id="edu.berkeley.eecs.emission.cordova.settings"
url="https://github.com/e-mission/cordova-connection-settings.git"/>
-->
<hook type="after_plugin_install" src="hooks/android/addResourcesClassImport.js" />
<platform name="android">
<config-file target="res/xml/config.xml" parent="/*">
<feature name="JWTAuth">
<param name="android-package" value="edu.berkeley.eecs.emission.cordova.jwtauth.JWTAuthPlugin"/>
<param name="onload" value="true"/>
</feature>
</config-file>
<framework src="com.google.android.gms:play-services-auth:11.0.1"/>
<!-- Configuration of OpenID auth plugin start -->
<framework src="net.openid:appauth:0.7.0"/>
<config-file target="AndroidManifest.xml" parent="/manifest/application">
<activity android:name="net.openid.appauth.RedirectUriReceiverActivity">
<intent-filter>
<action android:name="android.intent.action.VIEW"/>
<category android:name="android.intent.category.DEFAULT"/>
<category android:name="android.intent.category.BROWSABLE"/>
<data android:scheme="emission.auth" />
</intent-filter>
</activity>
</config-file>
<framework src="com.auth0.android:jwtdecode:1.1.1"/>
<framework src="src/android/openid-config.gradle" custom="true" type="gradleReference" />
<!-- Configuration of OpenID auth plugin end -->
<source-file src="src/android/JWTAuthPlugin.java" target-dir="src/edu/berkeley/eecs/emission/cordova/jwtauth"/>
<source-file src="src/android/GoogleAccountManagerAuth.java" target-dir="src/edu/berkeley/eecs/emission/cordova/jwtauth"/>
<source-file src="src/android/PromptedAuth.java" target-dir="src/edu/berkeley/eecs/emission/cordova/jwtauth"/>
<source-file src="src/android/UserProfile.java" target-dir="src/edu/berkeley/eecs/emission/cordova/jwtauth"/>
<source-file src="src/android/AuthResult.java" target-dir="src/edu/berkeley/eecs/emission/cordova/jwtauth"/>
<source-file src="src/android/AuthPendingResult.java" target-dir="src/edu/berkeley/eecs/emission/cordova/jwtauth"/>
<source-file src="src/android/AuthTokenCreator.java" target-dir="src/edu/berkeley/eecs/emission/cordova/jwtauth"/>
<source-file src="src/android/AuthTokenCreationFactory.java" target-dir="src/edu/berkeley/eecs/emission/cordova/jwtauth"/>
<source-file src="src/android/OpenIDAuthStateManager.java" target-dir="src/edu/berkeley/eecs/emission/cordova/jwtauth"/>
<source-file src="src/android/OpenIDAuth.java" target-dir="src/edu/berkeley/eecs/emission/cordova/jwtauth"/>
</platform>
<platform name="ios">
<config-file target="config.xml" parent="/*">
<feature name="JWTAuth">
<param name="ios-package" value="BEMJWTAuth" />
<param name="onload" value="true"/>
</feature>
</config-file>
<config-file target="*-Info.plist" parent="CFBundleURLTypes">
<array>
<dict>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>CFBundleURLSchemes</key>
<array>
<string>emission.auth</string>
</array>
</dict>
</array>
</config-file>
<framework src="SystemConfiguration.framework"/>
<framework src="Security.framework"/>
<framework src="GoogleSignIn" type="podspec" spec="~> 4.0.0"/>
<framework src="AppAuth" type="podspec" spec="~> 0.91.0"/>
<framework src="JWT" type="podspec" spec="~> 2.2.0"/>
<header-file src="src/ios/BEMJWTAuth.h"/>
<header-file src="src/ios/GoogleSigninAuth.h"/>
<header-file src="src/ios/PromptedAuth.h"/>
<header-file src="src/ios/AuthTokenCreator.h"/>
<header-file src="src/ios/AuthTokenCreationFactory.h"/>
<header-file src="src/ios/OpenIDAuth.h"/>
<source-file src="src/ios/BEMJWTAuth.m"/>
<source-file src="src/ios/GoogleSigninAuth.m"/>
<source-file src="src/ios/PromptedAuth.m"/>
<source-file src="src/ios/AuthTokenCreationFactory.m"/>
<source-file src="src/ios/OpenIDAuth.m"/>
</platform>
</plugin>