Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions plugins/az-auth/.eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
node_modules/
dist/
out/
coverage/
*.min.js
*.bundle.js
9 changes: 9 additions & 0 deletions plugins/az-auth/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
out
dist
node_modules
vsix
.vscode-test/
*.vsix
.DS_Store
.eslintcache
azure-api.js
1 change: 1 addition & 0 deletions plugins/az-auth/.npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
legacy-peer-deps=true
13 changes: 13 additions & 0 deletions plugins/az-auth/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
## Azure Auth Headlamp plugin

This plugin exposes functions to enable Azure Authentication.
The plugin consists of two parts:

1. `src-bin/azure-api.ts`

A small CLI utility script that is bundled to `azure-api.js` and run by the Headlamp app in Node.js.
It uses `@azure/identity` and its interactive browser credential to perform basic operations like logging in and out and requesting auth tokens.

2. `src/index.tsx`

A bridge that calls the utility and exposes an Azure SDK compatible credential. It adds a `window.azureAuth` property.
Loading
Loading