Skip to content

Commit cc9cb64

Browse files
Add native auth e2e app (#8176)
This pull request introduces a new Native Authentication sample application for MSAL.js, adds documentation, and updates build and ownership configuration for the new custom authentication module. The main changes include the addition of the sample app and its documentation, a new build configuration for the custom authentication UMD bundle, and updates to the code ownership file to reflect responsibility for the new sample. --------- Co-authored-by: Konstantin <[email protected]>
1 parent 15f3b13 commit cc9cb64

27 files changed

+5057
-0
lines changed

CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
# MSAL Browser
44
/lib/msal-browser/src/custom_auth/ @shenj @yongdiw @nilo-ms @spetrescu84 @mustafamizrak
55
/lib/msal-browser/test/custom_auth/ @shenj @yongdiw @nilo-ms @spetrescu84 @mustafamizrak
6+
/samples/msal-browser-samples/NativeAuthSample @shenj @yongdiw @nilo-ms @spetrescu84 @mustafamizrak
67

78
# MSAL Node
89
/lib/msal-node/ @AzureAD/msal-js-public-client @AzureAD/id4s-msal-team
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"type": "minor",
3+
"comment": "Add native auth e2e sample app",
4+
"packageName": "@azure/msal-browser",
5+
"email": "[email protected]",
6+
"dependentChangeType": "patch"
7+
}

lib/msal-browser/rollup.config.js

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,4 +182,35 @@ export default [
182182
}),
183183
],
184184
},
185+
{
186+
// Custom Auth - UMD build
187+
input: "src/custom_auth/index.ts",
188+
output: [
189+
{
190+
dir: "lib/custom-auth-path",
191+
format: "umd",
192+
name: "msalCustomAuth",
193+
banner: fileHeader,
194+
inlineDynamicImports: true,
195+
sourcemap: true,
196+
entryFileNames: "msal-custom-auth.js",
197+
},
198+
],
199+
plugins: [
200+
nodeResolve({
201+
browser: true,
202+
resolveOnly: ["@azure/msal-common", "tslib"],
203+
}),
204+
typescript({
205+
typescript: require("typescript"),
206+
tsconfig: "tsconfig.custom-auth.build.json",
207+
sourceMap: true,
208+
compilerOptions: {
209+
outDir: "lib/custom-auth-path/types",
210+
declaration: false,
211+
declarationMap: false,
212+
},
213+
}),
214+
],
215+
},
185216
];

package-lock.json

Lines changed: 39 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)