Skip to content

[ENG-10238] Allow next_url to contain local url of Angular#11580

Open
ihorsokhanexoft wants to merge 3 commits intoCenterForOpenScience:feature/pbs-26-2from
ihorsokhanexoft:fix/ENG-10238
Open

[ENG-10238] Allow next_url to contain local url of Angular#11580
ihorsokhanexoft wants to merge 3 commits intoCenterForOpenScience:feature/pbs-26-2from
ihorsokhanexoft:fix/ENG-10238

Conversation

@ihorsokhanexoft
Copy link
Contributor

Ticket

https://openscience.atlassian.net/browse/ENG-10238?atlOrigin=eyJpIjoiZDQ2NTcwZmU1NjE5NGNlYmIyZGYzYWQ3MzQ3NzY0MGMiLCJwIjoiaiJ9

Purpose

CAS should redirect to the new UI locally

Changes

Updated next_url

@ihorsokhanexoft ihorsokhanexoft changed the title redirect to Angular after CAS auth [ENG-10238] Allow next_url to contain local url of Angular Feb 11, 2026
Copy link
Collaborator

@cslzchen cslzchen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good overall, let's create unit tests as well in addition to my comments.

from osf import features


LOCAL_ANGULAR_URL = 'localhost:4200'
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This may be present in settings, if not let's add it to defualts.py

Copy link
Collaborator

@cslzchen cslzchen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In addition, re-target the PR to our feature branch.

Comment on lines +1212 to +1213
if settings.LOCAL_ANGULAR_URL in next_url and settings.DEBUG_MODE:
return True
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's move this before the comment + putting an extra comment for what this new check is.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants