Skip to content

Commit

Permalink
Merge pull request #1 from soliantconsulting/bugfix/missing-sub
Browse files Browse the repository at this point in the history
fix: missing propPrefix for initiateLoginUri
  • Loading branch information
DASPRiD authored Apr 24, 2024
2 parents 4226e49 + 27a2fc8 commit 7d4729c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions skeleton/templates/src/auth0-stack.ts.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import type { Construct } from 'constructs';
import { Branding } from './gen/providers/auth0/branding/index.js';
import { Client } from './gen/providers/auth0/client/index.js';
import { Connection } from './gen/providers/auth0/connection/index.js';
import { ConnectionClients } from "./gen/providers/auth0/connection-clients/index.js";
import { EmailProvider } from './gen/providers/auth0/email-provider/index.js';
import { Auth0Provider } from './gen/providers/auth0/provider/index.js';
import { ResourceServer } from './gen/providers/auth0/resource-server/index.js';
Expand Down Expand Up @@ -88,9 +89,9 @@ class Auth0Stack extends TerraformStack {
idleTokenLifetime: 60 * 60 * 24 * 15
},
initiateLoginUri:
props.sbiCustomerPortalBaseUrl.startsWith("https://") &&
!props.sbiCustomerPortalBaseUrl.startsWith("https://localhost")
? ${props.sbiCustomerPortalBaseUrl}
props.{{{spa.propPrefix}}}BaseUrl.startsWith("https://") &&
!props.{{{spa.propPrefix}}}BaseUrl.startsWith("https://localhost")
? props.{{{spa.propPrefix}}}BaseUrl
: undefined,
callbacks: [props.{{{spa.propPrefix}}}BaseUrl],
allowedOrigins: [props.{{{spa.propPrefix}}}BaseUrl],
Expand Down

0 comments on commit 7d4729c

Please sign in to comment.