This repository was archived by the owner on Mar 24, 2022. It is now read-only.
Repository navigation
Expand file tree
/
Copy pathplugin.xml
More file actions
127 lines (127 loc) · 5.86 KB
/
Copy pathplugin.xml
File metadata and controls
127 lines (127 loc) · 5.86 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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
<?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="2.5.0">
<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" version=">=7.0.0"/>
</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>
<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>
</plugin>