Skip to content

Commit

Permalink
PoC for OIDC implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
tennox committed Nov 25, 2023
1 parent 1444916 commit 3ca5395
Show file tree
Hide file tree
Showing 13 changed files with 4,619 additions and 33 deletions.
14 changes: 14 additions & 0 deletions .envrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/usr/bin/env bash
set -euo pipefail

# Docs: https://direnv.net/

if ! has nix_direnv_version || ! nix_direnv_version 2.3.0; then
source_url "https://raw.githubusercontent.com/nix-community/nix-direnv/2.3.0/direnvrc" "sha256-Dmd+j63L84wuzgyjITIfSxSD57Tx7v51DMxVZOsiUD8="
fi

nix_direnv_watch_file devenv.nix

use flake path:$HOME/dev/devshell-templates/js --impure

layout node # adds PATH entry node_modules/.bin - https://github.com/direnv/direnv/blob/75d0e63c5bfa0b4b1e3b4b27a6198f2e2f8b79c7/stdlib.sh#L767
1 change: 1 addition & 0 deletions .pre-commit-config.yaml
4 changes: 4 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"editor.minimap.enabled": false,
"editor.defaultFormatter": "dbaeumer.vscode-eslint"
}
25 changes: 19 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@
"name": "@badgateway/oauth2-client",
"version": "2.2.4",
"description": "OAuth2 client for browsers and Node.js. Tiny footprint, PKCE support",
"main": "dist/index.js",
"type": "module",
"scripts": {
"build": "vite build",
"test": "make test",
"prepublishOnly": "make build",
"lint": "make lint"
Expand Down Expand Up @@ -34,28 +35,40 @@
"@curveball/core": "^0.21.1",
"@curveball/http-errors": "^0.5.0",
"@types/chai": "^4.3.1",
"@types/eslint": "^8.44.7",
"@types/estree": "^1.0.5",
"@types/mocha": "^10.0.0",
"@types/node": "^18.0.0",
"@typescript-eslint/eslint-plugin": "^6.2.0",
"@types/node": "^18.18.13",
"@typescript-eslint/eslint-plugin": "^6.12.0",
"@typescript-eslint/parser": "^6.2.0",
"chai": "^4.3.6",
"eslint": "^8.1.0",
"eslint": "^8.54.0",
"mocha": "^10.0.0",
"node-fetch": "^2.6.7",
"ts-loader": "^9.2.6",
"ts-node": "^10.7.0",
"typescript": "^5.0.4",
"typescript": "^5.3.2",
"vite": "^5.0.2",
"vite-plugin-dts": "^3.6.3",
"webpack": "^5.60.0",
"webpack-cli": "^5.0.1"
},
"browser": "browser/oauth2-client.min.js",
"main": "./dist/oauth2-client.umd.cjs",
"module": "./dist/oauth2-client.js",
".browser": "browser/oauth2-client.min.js",
"files": [
"dist/",
"src/",
"browser/",
"LICENSE",
"README.md"
],
"exports": {
".": {
"import": "./dist/oauth2-client.js",
"require": "./dist/oauth2-client.umd.cjs"
}
},
"mocha": {
"require": [
"ts-node/register",
Expand Down
Loading

0 comments on commit 3ca5395

Please sign in to comment.