You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
The text was updated successfully, but these errors were encountered:
I'm submitting a:
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
node -v
):16.13.2Configuration
The text was updated successfully, but these errors were encountered: