Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft: PoC for OIDC implementation #131

Closed
wants to merge 1 commit into from
Closed
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
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 git+https://gitlab.com/txlab/dx/templates/js --impure --no-write-lock-file

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
Loading