-
Notifications
You must be signed in to change notification settings - Fork 30
Open
Description
I'm submitting a:
- Bug report
- Feature request
- Other (Describe below)
Current behavior
If an angular app is built with a baseHref, redirect Uris for signin and singout are not relative to this path when using OktaAuthGuard or signInWithRedirect.
Expected behavior
In v3 the redirect Uris were built using prepareExternalUrl which added the baseHref path. This appears to have been removed.
Minimal reproduction of the problem with instructions
Build angular app with baseHref. Serve on /base
ng build --base-href /base
Configure okta to use a redirectUri without the base path.
redirectUri: '/login/callback'
Trigger a sign-in redirect and the redirectUri will be /login/callback. This should trigger a 404 since the web app understanda the callback route as /base/login/callback.
Environment
- Package version:5.1.0
- Angular version: 13.1
- Browser:Chrome
- OS:Windows
- Node version (
node -v):16.13.2 - Other:
Configuration
- Okta application type:
Metadata
Metadata
Assignees
Labels
No labels