Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

global: fix tests from pallets family upgrade #274

Merged
merged 3 commits into from
May 18, 2022

Conversation

ppanero
Copy link
Member

@ppanero ppanero commented May 16, 2022

oauth.mov

Important info

All redirects are now relative, since Flask/Werkzeug 2.1.0. According to the issue it was tested in all the major browsers and CLIs and they do follow redirects properly.

Response.autocorrect_location_header is disabled by default. The Location header URL will remain relative, and exclude the scheme and domain, by default. wekzeug/issues/2352

In order to undo it (i.e. allow external redirects) we would need to change this configuration value. An example test in werkzeug is this

@ppanero ppanero force-pushed the build-fix branch 3 times, most recently from 64ead48 to 2b0869b Compare May 16, 2022 12:35
Co-authored-by: Zacharias Zacharodimos <[email protected]>
@ppanero ppanero force-pushed the build-fix branch 4 times, most recently from c082d8d to 3f8c458 Compare May 18, 2022 07:12
@@ -363,7 +362,6 @@ def account_setup(remote, token, resp):
resource = get_resource(remote, resp)

with db.session.begin_nested():
person_id = resource.get("cern_person_id")
Copy link
Member Author

Choose a reason for hiding this comment

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

unused

Copy link
Contributor

Choose a reason for hiding this comment

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

this is interesting, we have person_id in ILS, not sure now how it gets there

Copy link
Member Author

Choose a reason for hiding this comment

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

🤷‍♂️ I just see that the person_id is extracted and never used hehe

@ppanero ppanero force-pushed the build-fix branch 3 times, most recently from d8e77f2 to 1d4d831 Compare May 18, 2022 09:24
@ppanero ppanero merged commit 88f86c0 into inveniosoftware:master May 18, 2022
@ppanero ppanero deleted the build-fix branch May 18, 2022 11:57
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.

ORCiD and Keycloak integrations not working
2 participants