Compare commits
74 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| e4df8438cf | |||
|
a9fe91bd84
|
|||
| b0c639b509 | |||
| 03429f2421 | |||
| 7b3e192cf0 | |||
| 8f098d60bd | |||
|
fa022bb9e0
|
|||
| 004cfc400a | |||
| d8f853f544 | |||
| 382f04534f | |||
| 57e5c08c79 | |||
| afbda1fe24 | |||
| 9f043b25e6 | |||
| c18259ac3f | |||
| 613abecf2a | |||
| 3e98eee171 | |||
| b4f482d293 | |||
| 3ae4d5abd2 | |||
| 83fd1153d9 | |||
| 060d9529bd | |||
|
8dc80e28cd
|
|||
| 94514bc627 | |||
| 34897e0015 | |||
| 86d4176015 | |||
| 68da5aa9a1 | |||
| f9743ca018 | |||
| b87a6002fd | |||
| 36dab87552 | |||
| f959811b68 | |||
| 39588214a6 | |||
|
8c7b44974f
|
|||
| afe64a31f9 | |||
|
45224547d6
|
|||
| d8aa7d2a89 | |||
| 72f3787dc6 | |||
| 2b62a7ed77 | |||
| 9500f5569d | |||
| 0a1f3eb4e4 | |||
| 7136bda3a8 | |||
| 790399edca | |||
| 6b1ea50aac | |||
| 5edd0801e4 | |||
| 5775cb6006 | |||
| 11ec56bae9 | |||
| 4ae4966ce9 | |||
|
9f40b06ce9
|
|||
| d300500da7 | |||
| 82f4604e6f | |||
| 04e402cdae | |||
| e6e1b1e348 | |||
| aaab5b2cd5 | |||
| 32af389b7b | |||
| f60af84b41 | |||
| 9cb454c32a | |||
| 8f31c1d717 | |||
| 277b64019c | |||
|
66f83fa70d
|
|||
| 01ccab5024 | |||
| 656b10bab9 | |||
| 366113bbf5 | |||
| dde5e91968 | |||
| 21ccdc6809 | |||
| b6b5673ea4 | |||
| b40c5b85e8 | |||
| 295636e444 | |||
| 5c7a189bf1 | |||
| 60ae679d87 | |||
| bc1dcdc8b4 | |||
| 81673c01eb | |||
| 0e883190d5 | |||
| bb29d2f2ad | |||
| 55374c395d | |||
| 8d94a8f8af | |||
| 3478ad0e5b |
+2
-9
@@ -1,22 +1,15 @@
|
||||
include:
|
||||
- template: 'Workflows/MergeRequest-Pipelines.gitlab-ci.yml'
|
||||
- project: unboundsoftware/ci-templates
|
||||
file: Release.gitlab-ci.yml
|
||||
|
||||
stages:
|
||||
- build
|
||||
|
||||
variables:
|
||||
DOCKER_HOST: tcp://docker:2376
|
||||
DOCKER_TLS_CERTDIR: "/certs"
|
||||
DOCKER_TLS_VERIFY: 1
|
||||
DOCKER_CERT_PATH: "$DOCKER_TLS_CERTDIR/client"
|
||||
DOCKER_DRIVER: overlay2
|
||||
|
||||
image: buildtool/build-tools:${BUILDTOOLS_VERSION}
|
||||
|
||||
build:
|
||||
stage: build
|
||||
services:
|
||||
- docker:${DOCKER_DIND_VERSION}
|
||||
script:
|
||||
- build
|
||||
- push
|
||||
|
||||
+247
@@ -0,0 +1,247 @@
|
||||
# Changelog
|
||||
|
||||
All notable changes to this project will be documented in this file.
|
||||
|
||||
## [0.1.5] - 2025-04-03
|
||||
|
||||
### 🐛 Bug Fixes
|
||||
|
||||
- *(deps)* Update dependency body-parser to v2
|
||||
- *(deps)* Update dependency express to v5
|
||||
- Update CORS options for better compatibility
|
||||
|
||||
### ⚙️ Miscellaneous Tasks
|
||||
|
||||
- *(Dockerfile)* Update Node.js base image version
|
||||
|
||||
## [0.1.4] - 2025-01-24
|
||||
|
||||
### 🐛 Bug Fixes
|
||||
|
||||
- *(k8s)* Update labels to adhere to best practices
|
||||
|
||||
## [0.1.3] - 2024-12-18
|
||||
|
||||
### 🐛 Bug Fixes
|
||||
|
||||
- *(deps)* Pin dependencies
|
||||
- *(deps)* Update dependency express to v4.21.2
|
||||
- *(deps)* Update dependency debug to v4.4.0
|
||||
- *(deps)* Update dependency nodemon to v3.1.9
|
||||
|
||||
### 🚜 Refactor
|
||||
|
||||
- *(ci)* Remove unused Docker variables from config
|
||||
|
||||
### ⚙️ Miscellaneous Tasks
|
||||
|
||||
- Update renovate configuration to disable auth0mock updates
|
||||
- Remove Docker service from build stage configuration
|
||||
|
||||
## [0.1.2] - 2024-10-19
|
||||
|
||||
### 🐛 Bug Fixes
|
||||
|
||||
- *(deps)* Update dependency cookie-parser to v1.4.7
|
||||
- *(deps)* Update dependency express to v4.21.1
|
||||
|
||||
### ⚙️ Miscellaneous Tasks
|
||||
|
||||
- Update Dockerfile to remove warnings
|
||||
- Support issuer in openid-configuration
|
||||
|
||||
## [0.1.1] - 2024-10-05
|
||||
|
||||
### 🐛 Bug Fixes
|
||||
|
||||
- *(deps)* Update dependency nodemon to v3.1.1
|
||||
- *(deps)* Update dependency nodemon to v3.1.2
|
||||
- *(deps)* Update dependency debug to v4.3.5
|
||||
- *(deps)* Update dependency nodemon to v3.1.3
|
||||
- *(deps)* Update dependency nodemon to v3.1.4
|
||||
- *(deps)* Update dependency debug to v4.3.6
|
||||
- *(deps)* Update dependency debug to v4.3.7
|
||||
- *(deps)* Update dependency body-parser to v1.20.3
|
||||
- *(deps)* Update dependency express to v4.20.0
|
||||
- *(deps)* Update dependency express to v4.21.0
|
||||
- *(deps)* Update dependency nodemon to v3.1.5
|
||||
- *(deps)* Update dependency nodemon to v3.1.6
|
||||
- *(deps)* Update dependency nodemon to v3.1.7
|
||||
|
||||
### ⚙️ Miscellaneous Tasks
|
||||
|
||||
- Add release flow
|
||||
|
||||
## [0.1.0] - 2024-04-08
|
||||
|
||||
### 🚀 Features
|
||||
|
||||
- Replace keystore handling with node-jose
|
||||
|
||||
### 🐛 Bug Fixes
|
||||
|
||||
- *(deps)* Update dependency express to v4.19.1
|
||||
- *(deps)* Update dependency express to v4.19.2
|
||||
|
||||
## [0.0.17] - 2024-03-11
|
||||
|
||||
### 🚀 Features
|
||||
|
||||
- Support patching of user info
|
||||
|
||||
### 🐛 Bug Fixes
|
||||
|
||||
- *(deps)* Update dependency express to v4.18.3
|
||||
|
||||
## [0.0.16] - 2023-06-01
|
||||
|
||||
### 🚀 Features
|
||||
|
||||
- Initial users store
|
||||
|
||||
## [0.0.15] - 2023-05-31
|
||||
|
||||
### 🐛 Bug Fixes
|
||||
|
||||
- Return empty array
|
||||
|
||||
## [0.0.14] - 2023-05-31
|
||||
|
||||
### 🚀 Features
|
||||
|
||||
- Remember created users
|
||||
|
||||
## [0.0.13] - 2023-05-02
|
||||
|
||||
### 🚀 Features
|
||||
|
||||
- Add name and email to id token
|
||||
|
||||
## [0.0.12] - 2023-03-10
|
||||
|
||||
### 🐛 Bug Fixes
|
||||
|
||||
- Remove session on logout
|
||||
|
||||
## [0.0.11] - 2023-03-10
|
||||
|
||||
### 🐛 Bug Fixes
|
||||
|
||||
- Update image name to correct location
|
||||
- Handle response mode query
|
||||
|
||||
### ⚙️ Miscellaneous Tasks
|
||||
|
||||
- Use Docker DinD version from variable
|
||||
- Change Dependabot rebase strategy
|
||||
- Format code and add prettier
|
||||
|
||||
## [0.0.9] - 2022-04-28
|
||||
|
||||
### 🚀 Features
|
||||
|
||||
- Add support for client id and secret tokens
|
||||
|
||||
## [0.0.8] - 2022-04-26
|
||||
|
||||
### 🚀 Features
|
||||
|
||||
- Add dummy-implementation of management API
|
||||
|
||||
## [0.0.7] - 2022-04-26
|
||||
|
||||
### 🐛 Bug Fixes
|
||||
|
||||
- Use correct return-variable
|
||||
|
||||
## [0.0.6] - 2022-04-26
|
||||
|
||||
### 🐛 Bug Fixes
|
||||
|
||||
- Make sure thumbPrint is a string
|
||||
|
||||
### 💼 Other
|
||||
|
||||
- *(deps)* Bump express from 4.17.3 to 4.18.0
|
||||
|
||||
### ⚙️ Miscellaneous Tasks
|
||||
|
||||
- Format code
|
||||
|
||||
## [0.0.5] - 2022-04-26
|
||||
|
||||
### 🐛 Bug Fixes
|
||||
|
||||
- Add custom claims to both id and access token
|
||||
|
||||
## [0.0.4] - 2022-04-26
|
||||
|
||||
### 🚀 Features
|
||||
|
||||
- Add email custom claim
|
||||
|
||||
## [0.0.3] - 2022-04-26
|
||||
|
||||
### 🚀 Features
|
||||
|
||||
- Add env-property for default issuer
|
||||
|
||||
## [0.0.2] - 2022-04-25
|
||||
|
||||
### 💼 Other
|
||||
|
||||
- *(deps)* Bump node from 17 to 18
|
||||
|
||||
### ⚙️ Miscellaneous Tasks
|
||||
|
||||
- Change admin-handling
|
||||
|
||||
## [0.0.1] - 2022-04-19
|
||||
|
||||
### 🚀 Features
|
||||
|
||||
- Initial commit
|
||||
- Updated to be compatible with Auth0 SPA which uses the 'Authorization Code Grant using Proof Key for Code Exchange (PKCE)' flow
|
||||
- Add ENV-property for setting admin-role
|
||||
|
||||
### 🐛 Bug Fixes
|
||||
|
||||
- Use correct envs
|
||||
- Use commit rather than latest
|
||||
- Package.json & yarn.lock to reduce vulnerabilities
|
||||
- Package.json & yarn.lock to reduce vulnerabilities
|
||||
- Pipeline
|
||||
|
||||
### 💼 Other
|
||||
|
||||
- *(deps)* Bump nodemon from 2.0.14 to 2.0.15
|
||||
- *(deps)* Bump cookie-parser from 1.4.5 to 1.4.6
|
||||
- *(deps)* Bump debug from 4.3.2 to 4.3.3
|
||||
- *(deps)* Bump body-parser from 1.19.0 to 1.19.1
|
||||
- *(deps)* Bump express from 4.17.1 to 4.17.2
|
||||
- *(deps)* Bump node-forge from 0.10.0 to 1.0.0
|
||||
- *(deps)* Bump node-forge from 1.0.0 to 1.1.0
|
||||
- *(deps)* Bump node-forge from 1.1.0 to 1.2.0
|
||||
- *(deps)* Bump node-forge from 1.2.0 to 1.2.1
|
||||
- *(deps)* Bump body-parser from 1.19.1 to 1.19.2
|
||||
- *(deps)* Bump https-localhost from 4.7.0 to 4.7.1
|
||||
- *(deps)* Bump express from 4.17.2 to 4.17.3
|
||||
- *(deps)* Bump debug from 4.3.3 to 4.3.4
|
||||
- *(deps)* Bump node-forge from 1.2.1 to 1.3.0
|
||||
- *(deps)* Bump node-forge from 1.3.0 to 1.3.1
|
||||
- *(deps)* Bump body-parser from 1.19.2 to 1.20.0
|
||||
|
||||
### ⚙️ Miscellaneous Tasks
|
||||
|
||||
- Add triggering of acctest
|
||||
- Add artifacts
|
||||
- Update to latest build-tools
|
||||
- Update to latest build-tools
|
||||
- Add ingress
|
||||
- Add CI workflows
|
||||
- Use buildtools version from env
|
||||
- Add dependabot config
|
||||
- Remove dependabot-standalone
|
||||
- Cleanup and remove acctest triggering
|
||||
|
||||
<!-- generated by git-cliff -->
|
||||
+5
-5
@@ -1,7 +1,7 @@
|
||||
FROM node:20
|
||||
ENV AUDIENCE "https://shiny.unbound.se"
|
||||
ENV ORIGIN_HOST "auth0mock"
|
||||
ENV ORIGIN "https://auth0mock:3333"
|
||||
FROM amd64/node:22.14.0@sha256:fab5feecdaa5b3dd169ebce16b46938412b1c3b4def5dca0a92ad5bd55b12b68
|
||||
ENV AUDIENCE="https://shiny.unbound.se"
|
||||
ENV ORIGIN_HOST="auth0mock"
|
||||
ENV ORIGIN="https://auth0mock:3333"
|
||||
EXPOSE 3333
|
||||
WORKDIR /app
|
||||
ADD package.json yarn.lock /app/
|
||||
@@ -9,4 +9,4 @@ RUN yarn install --frozen-lockfile
|
||||
ADD *.js /app/
|
||||
ADD public /app/public
|
||||
RUN mkdir -p /root/.config
|
||||
ENTRYPOINT yarn start
|
||||
ENTRYPOINT ["yarn", "start"]
|
||||
|
||||
@@ -54,7 +54,7 @@ const signToken = async (token) => {
|
||||
|
||||
// Configure our small auth0-mock-server
|
||||
app
|
||||
.options('*', cors(corsOpts))
|
||||
.options('*all', cors(corsOpts))
|
||||
.use(cors())
|
||||
.use(bodyParser.json({ strict: false }))
|
||||
.use(bodyParser.urlencoded({ extended: true }))
|
||||
@@ -302,25 +302,25 @@ app.get('/.well-known/openid-configuration', (req, res) => {
|
||||
res.contentType('application/json').send(
|
||||
JSON.stringify({
|
||||
"issuer":
|
||||
"https://auth0",
|
||||
`${jwksOrigin}`,
|
||||
"authorization_endpoint":
|
||||
"https://server.example.com/authorize",
|
||||
`${jwksOrigin}authorize`,
|
||||
"token_endpoint":
|
||||
"https://server.example.com/oauth/token",
|
||||
`${jwksOrigin}oauth/token`,
|
||||
"token_endpoint_auth_methods_supported":
|
||||
["client_secret_basic", "private_key_jwt"],
|
||||
"token_endpoint_auth_signing_alg_values_supported":
|
||||
["RS256"],
|
||||
"userinfo_endpoint":
|
||||
"https://server.example.com/userinfo",
|
||||
`${jwksOrigin}userinfo`,
|
||||
"check_session_iframe":
|
||||
"https://server.example.com/check_session",
|
||||
`${jwksOrigin}check_session`,
|
||||
"end_session_endpoint":
|
||||
"https://server.example.com/end_session",
|
||||
`${jwksOrigin}end_session`,
|
||||
"jwks_uri":
|
||||
"https://server.example.com/.well-known/jwks.json",
|
||||
`${jwksOrigin}.well-known/jwks.json`,
|
||||
"registration_endpoint":
|
||||
"https://server.example.com/register",
|
||||
`${jwksOrigin}register`,
|
||||
"scopes_supported":
|
||||
["openid", "profile", "email", "address",
|
||||
"phone", "offline_access"],
|
||||
|
||||
+4
-4
@@ -6,11 +6,11 @@ spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: auth0mock
|
||||
app.kubernetes.io/name: auth0mock
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: auth0mock
|
||||
app.kubernetes.io/name: auth0mock
|
||||
spec:
|
||||
containers:
|
||||
- name: auth0mock
|
||||
@@ -36,10 +36,10 @@ kind: Service
|
||||
metadata:
|
||||
name: auth0mock
|
||||
labels:
|
||||
app: auth0mock
|
||||
app.kubernetes.io/name: auth0mock
|
||||
spec:
|
||||
ports:
|
||||
- port: 3333
|
||||
selector:
|
||||
app: auth0mock
|
||||
app.kubernetes.io/name: auth0mock
|
||||
type: ClusterIP
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
apiVersion: networking.k8s.io/v1beta1
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: auth0-ingress
|
||||
|
||||
+11
-11
@@ -14,18 +14,18 @@
|
||||
"author": "",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"body-parser": "^1.20.2",
|
||||
"cookie-parser": "^1.4.6",
|
||||
"cors": "^2.8.3",
|
||||
"debug": "^4.3.4",
|
||||
"express": "^4.18.2",
|
||||
"https-localhost": "^4.7.1",
|
||||
"jsonwebtoken": "^9.0.2",
|
||||
"node-jose": "^2.2.0",
|
||||
"nodemon": "^3.1.0",
|
||||
"serve-favicon": "^2.4.2"
|
||||
"body-parser": "2.2.0",
|
||||
"cookie-parser": "1.4.7",
|
||||
"cors": "2.8.5",
|
||||
"debug": "4.4.0",
|
||||
"express": "5.1.0",
|
||||
"https-localhost": "4.7.1",
|
||||
"jsonwebtoken": "9.0.2",
|
||||
"node-jose": "2.2.0",
|
||||
"nodemon": "3.1.9",
|
||||
"serve-favicon": "2.5.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"prettier": "^3.2.5"
|
||||
"prettier": "3.5.3"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,5 +2,16 @@
|
||||
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
||||
"extends": [
|
||||
"config:recommended"
|
||||
],
|
||||
"packageRules": [
|
||||
{
|
||||
"matchManagers": [
|
||||
"kubernetes"
|
||||
],
|
||||
"matchPackageNames": [
|
||||
"registry.gitlab.com/unboundsoftware/auth0mock"
|
||||
],
|
||||
"enabled": false
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user