Skip to content

Commit 68dcf68

Browse files
committed
az-auth: Add Azure Authentication plugin
1 parent f5fed6a commit 68dcf68

12 files changed

Lines changed: 19923 additions & 0 deletions

File tree

plugins/az-auth/.eslintignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
node_modules/
2+
dist/
3+
out/
4+
coverage/
5+
*.min.js
6+
*.bundle.js

plugins/az-auth/.gitignore

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
out
2+
dist
3+
node_modules
4+
vsix
5+
.vscode-test/
6+
*.vsix
7+
.DS_Store
8+
.eslintcache
9+
azure-api.js

plugins/az-auth/.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
legacy-peer-deps=true

plugins/az-auth/README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
## Azure Auth Headlamp plugin
2+
3+
This plugin exposes functions to enable Azure Authentication.
4+
The plugin consists of two parts:
5+
6+
1. `src-bin/azure-api.ts`
7+
8+
A small CLI utility script that is bundled to `azure-api.js` and run by the Headlamp app in Node.js.
9+
It uses `@azure/identity` and its interactive browser credential to perform basic operations like logging in and out and requesting auth tokens.
10+
11+
2. `src/index.tsx`
12+
13+
A bridge that calls the utility and exposes an Azure SDK compatible credential. It adds a `window.azureAuth` property.

0 commit comments

Comments
 (0)