feat: issuer url #117

Merged
sparetimecoder merged 2 commits from issuer_url into main 2024-10-19 11:18:21 +00:00
2 changed files with 12 additions and 12 deletions

No files matched your search

+4 -4
View File
@@ -1,7 +1,7 @@
FROM node:20 FROM node:20
ENV AUDIENCE "https://shiny.unbound.se" ENV AUDIENCE="https://shiny.unbound.se"
ENV ORIGIN_HOST "auth0mock" ENV ORIGIN_HOST="auth0mock"
ENV ORIGIN "https://auth0mock:3333" ENV ORIGIN="https://auth0mock:3333"
EXPOSE 3333 EXPOSE 3333
WORKDIR /app WORKDIR /app
ADD package.json yarn.lock /app/ ADD package.json yarn.lock /app/
@@ -9,4 +9,4 @@ RUN yarn install --frozen-lockfile
ADD *.js /app/ ADD *.js /app/
ADD public /app/public ADD public /app/public
RUN mkdir -p /root/.config RUN mkdir -p /root/.config
ENTRYPOINT yarn start ENTRYPOINT ["yarn", "start"]
+8 -8
View File
@@ -302,25 +302,25 @@ app.get('/.well-known/openid-configuration', (req, res) => {
res.contentType('application/json').send( res.contentType('application/json').send(
JSON.stringify({ JSON.stringify({
"issuer": "issuer":
"https://auth0", `${jwksOrigin}`,
"authorization_endpoint": "authorization_endpoint":
"https://server.example.com/authorize", `${jwksOrigin}authorize`,
"token_endpoint": "token_endpoint":
"https://server.example.com/oauth/token", `${jwksOrigin}oauth/token`,
"token_endpoint_auth_methods_supported": "token_endpoint_auth_methods_supported":
["client_secret_basic", "private_key_jwt"], ["client_secret_basic", "private_key_jwt"],
"token_endpoint_auth_signing_alg_values_supported": "token_endpoint_auth_signing_alg_values_supported":
["RS256"], ["RS256"],
"userinfo_endpoint": "userinfo_endpoint":
"https://server.example.com/userinfo", `${jwksOrigin}userinfo`,
"check_session_iframe": "check_session_iframe":
"https://server.example.com/check_session", `${jwksOrigin}check_session`,
"end_session_endpoint": "end_session_endpoint":
"https://server.example.com/end_session", `${jwksOrigin}end_session`,
"jwks_uri": "jwks_uri":
"https://server.example.com/.well-known/jwks.json", `${jwksOrigin}.well-known/jwks.json`,
"registration_endpoint": "registration_endpoint":
"https://server.example.com/register", `${jwksOrigin}register`,
"scopes_supported": "scopes_supported":
["openid", "profile", "email", "address", ["openid", "profile", "email", "address",
"phone", "offline_access"], "phone", "offline_access"],