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

Deprecate OIDC xhr-auto-redirect and add java-script-auto-redirect properties #12399

Merged
merged 1 commit into from Sep 30, 2020

Conversation

sberyozkin
Copy link
Member

Some users who need to manually handle redirects in their SPA applications use Fetch, see this Zulip thread, so asking them to set quarkus.oidc.authentication.xhr-auto-redirect=false is not nice :-),
so this PR deprecates quarkus.oidc.authentication.xhr-auto-redirect and adds quarkus.oidc.authentication.javascript-auto-redirect which should be general enough for all the cases where SPA which use some JavaScript API need to disable the auto-redirect.

Also, this PR adds a minor update related to the non-OIDC server case (where only public-key is configured), so it Fixes #12395

@sberyozkin sberyozkin added this to the 1.9.0 - master milestone Sep 29, 2020
@pedroigor
Copy link
Contributor

pedroigor commented Sep 29, 2020

@sberyozkin So we still check for XMLHttpRequest ... Just a more language change to keep in sync with how people refer to this stuff ...

@sberyozkin
Copy link
Member Author

Hey @pedroigor I was thinking of just deleting the deprecated property, but the docs themselves only mention XHR as one of the possible producers of the new header value JavaScript :-)
If you'd like some doc updates now then let me know please, I can merge this one later tomorrow, thanks

@sberyozkin
Copy link
Member Author

Hi @pedroigor OK, merging now, but ping me please if you'd like some doc updates be done :-)

@sberyozkin sberyozkin merged commit f2f04ce into quarkusio:master Sep 30, 2020
@sberyozkin sberyozkin deleted the rename_xhr_auto_redirect branch September 30, 2020 09:22
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.

When JWT token is expired Runtime exception is thrown
2 participants