Skip to content

Redirect Uris no longer include baseHref. #85

@dbrink

Description

@dbrink

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions