forked from wrobins/cordova-plugin-msal
-
Notifications
You must be signed in to change notification settings - Fork 1
/
plugin.xml
149 lines (149 loc) · 6.72 KB
/
plugin.xml
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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
<?xml version="1.0" encoding="UTF-8"?>
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
xmlns:android="http://schemas.android.com/apk/res/android"
id="cordova-plugin-msal" version="3.0.0-alpha.1">
<name>Cordova MSAL Plugin</name>
<description>A Cordova plugin providing a wrapper for Microsoft's MSAL library for Android and iOS.</description>
<author>Walter Robins</author>
<keywords>cordova,android,outsystems,ios,microsoft,msal,azure,graphapi,authentication</keywords>
<license>Apache 2.0</license>
<repo>https://github.com/wrobins/cordova-plugin-msal.git</repo>
<issue>https://github.com/wrobins/cordova-plugin-msal/issues</issue>
<engines>
<engine name="cordova-android" version=">=8.1.0"/>
<engine name="cordova-ios" version=">=5.1.1"/>
</engines>
<js-module src="www/msalplugin.js" name="msalPlugin">
<clobbers target="cordova.plugins.msalPlugin" />
</js-module>
<preference name="TENANT_ID" default="common" />
<preference name="CLIENT_ID" />
<preference name="KEY_HASH" default="not-provided" />
<platform name="android">
<config-file target="res/xml/config.xml" parent="/*">
<feature name="MsalPlugin">
<param name="android-package" value="com.wrobins.cordova.plugin.MsalPlugin" />
<preference name="tenantId" value="$TENANT_ID" />
<preference name="clientId" value="$CLIENT_ID" />
<preference name="keyHash" value="$KEY_HASH" />
</feature>
</config-file>
<config-file target="AndroidManifest.xml" parent="/*">
<uses-permission android:name="android.permission.INTERNET "/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE "/>
<uses-permission android:name="android.permission.READ_CONTACTS" />
</config-file>
<config-file target="AndroidManifest.xml" parent="application">
<activity
android:name="com.microsoft.identity.client.BrowserTabActivity">
<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="msauth"
android:host="$PACKAGE_NAME"
android:path="/$KEY_HASH" />
</intent-filter>
</activity>
</config-file>
<config-file target="config.xml" parent="/*">
<preference name="AndroidXEnabled" value="true" />
</config-file>
<source-file src="src/android/MsalPlugin.java" target-dir="src/com/wrobins/cordova/plugin" />
<framework src="src/android/build-extras.gradle" custom="true" type="gradleReference" />
</platform>
<platform name="ios">
<config-file target="config.xml" parent="/*">
<feature name="MsalPlugin">
<param name="ios-package" value="MsalPlugin" />
<param name="onload" value="true" />
<preference name="tenantId" value="$TENANT_ID" />
<preference name="clientId" value="$CLIENT_ID" />
</feature>
<feature name="">
<param name="ios-package" value="" />
</feature>
<feature name="MSALPublicClientApplication">
<param name="ios-package" value="MSALPublicClientApplication" />
</feature>
<feature name="MSALPublicClientApplicationConfig">
<param name="ios-package" value="MSALPublicClientApplicationConfig" />
</feature>
<feature name="MSALAccount">
<param name="ios-package" value="MSALAccount" />
</feature>
<feature name="MSALSilentTokenParameters">
<param name="ios-package" value="MSALSilentTokenParameters" />
</feature>
<feature name="MSALResult">
<param name="ios-package" value="MSALResult" />
</feature>
<feature name="MSALWebviewParameters">
<param name="ios-package" value="MSALWebviewParameters" />
</feature>
<feature name="MSALInteractiveTokenParameters">
<param name="ios-package" value="MSALInteractiveTokenParameters" />
</feature>
<feature name="MSALError">
<param name="ios-package" value="MSALError" />
</feature>
</config-file>
<podspec>
<config>
<source url="https://cdn.cocoapods.org/"/>
</config>
<pods use_frameworks="true">
<pod name="MSAL" />
</pods>
</podspec>
<config-file target="*-Info.plist" parent="CFBundleURLTypes">
<array>
<dict>
<key>CFBundleURLSchemes</key>
<array>
<string>msauth.$PACKAGE_NAME</string>
</array>
</dict>
</array>
</config-file>
<config-file target="*-Info.plist" parent="LSApplicationQueriesSchemes">
<array>
<string>msauthv2</string>
<string>msauthv3</string>
</array>
</config-file>
<config-file parent="keychain-access-groups" target="*/Entitlements-Debug.plist">
<array>
<string>$(AppIdentifierPrefix)com.microsoft.adalcache</string>
</array>
</config-file>
<config-file parent="keychain-access-groups" target="*/Entitlements-Release.plist">
<array>
<string>$(AppIdentifierPrefix)com.microsoft.adalcache</string>
</array>
</config-file>
<header-file src="src/ios/MsalPlugin.h" />
<header-file src="src/ios/AppDelegate+MsalCallback.h" />
<source-file src="src/ios/MsalPlugin.m" />
<source-file src="src/ios/AppDelegate+MsalCallback.m" />
</platform>
<platform name="browser">
<config-file target="config.xml" parent="/*">
<feature name="MsalPlugin">
<param name="browser-package" value="MsalPlugin" />
</feature>
</config-file>
<js-module src="src/browser/msal-browser.min.js" name="Msal">
<runs />
</js-module>
<js-module src="src/browser/MsalPluginProxy.js" name="MsalPluginProxy">
<runs />
</js-module>
</platform>
<platform name="windows">
<config-file target="config.xml" parent="/*">
<preference name="windows-target-version" value="10.0" />
</config-file>
</platform>
</plugin>