-
Notifications
You must be signed in to change notification settings - Fork 356
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
Use cookie authentication against the API, drop the token renewal #5164
Conversation
You might also want to remove the EDIT: done 👍 |
dea3cf6
to
32c619a
Compare
I worked with @skateman to test these changes. The testing done was with SAML via Keycloak, External Auth and SSO (kerberos) via IPA. I believe this is a good test sampling. LGTM JoeV |
@miq-bot add_label pending core, hammer/no |
I'm moving the decision about the origin verification from the API PR to here. @martinpovolny the API verifies the |
api and appliance PRs merged |
92f7a7a
to
3c8c841
Compare
@himdel I added back the |
@miq-bot rm_label pending core |
There... is a slight chance this may be exposing an API bug... I'm getting
right after logging in when testing the PR. (api.log) EDIT: added a note to ManageIQ/manageiq-api#544 |
@himdel this bug was already present even before this PR and @Hyperkid123 suffered because of that. |
Checked commits skateman/manageiq-ui-classic@8def1c0~...f161abd with ruby 2.3.3, rubocop 0.52.1, haml-lint 0.20.0, and yamllint 1.10.0 |
Looks like the login fails sensibly (on failure), and also works (on success) :), merged. |
If the API allows cookie authentication, there is no need for the API token requesting and renewal processes. After a successfull login the API requests should be implicitly authorized until the cookie is available. This allows us to delete a few hundred lines of JS code. However, we have to add a new header for those API requests to distinguish them from regular requests if the session expires. This way we can prevent displaying a HTTP basic auth dialog if the cookie times out.
@miq-bot assign @himdel
Depends on: ManageIQ/manageiq-api#543