Skip to content

Commit 3ee2ef6

Browse files
committed
az-auth: Add Azure Authentication plugin
1 parent f5fed6a commit 3ee2ef6

12 files changed

Lines changed: 19943 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 function to enable Azure Authentication.
4+
Plugin consists of two parts:
5+
6+
1. src-bin/azure-api.js
7+
8+
This is essentialy a small CLI utility script that is called by Headlamp App in Node.js.
9+
It uses @azure/identity and its' interactive browser credential. Enables basic operations like login in and out, requesting auth tokens.
10+
11+
2. src/index.tsx
12+
13+
A simple bridge that calls the utility and also exposes Azure SDK compatible credential. Adds a `window.azureAuth` property.

0 commit comments

Comments
 (0)