Project

General

Profile

Actions

Task #3139

closed

Add the option to prevent user login after password reset and redirect to a custom URL

Added by Tomáš Doischer almost 2 years ago. Updated almost 2 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Roman Kučera
Target version:
Start date:
06/17/2022
Due date:
% Done:

100%

Estimated time:
Owner:

Description

The issue is related to the use of the module in the appliance.

The way it works now is that the user changes their password and is immediately logged in to IdM. (This is slightly strange on its own but let's keep it.)

But this does not work with CAS - the user is presented with an error that they cannot log in to IdM and must use external authentication (with no redirect link).

We need to prevent this login and redirect the user to CAS instead.

Actions #1

Updated by Roman Kučera almost 2 years ago

  • Status changed from New to In Progress
  • Assignee set to Roman Kučera
  • % Done changed from 0 to 80
Actions #2

Updated by Roman Kučera almost 2 years ago

Implemented in https://git.bcvsolutions.eu/modules/password-reset/-/tree/kucerar/3139-better-support-with-cas
PR https://git.bcvsolutions.eu/modules/password-reset/-/merge_requests/13

Implemeted:
  • If CAS is enabled (idm.pub.core.cas.enabled=true) do redirect to /login which will redirect to CAS
  • If there is some error when password is changed, redirect is not performed, so user can know which system failed.
  • If CAS is not enabled, behavior is still the same (direct login into IdM)
  • After sending request for pass reset, there is new back button so the user can go back to /
  • After setting new password there is also button to cancel the automatic redirect an bring you back to /

deployed on app196

@doischert can you provide me a feedback pls?

Actions #3

Updated by Roman Kučera almost 2 years ago

  • Status changed from In Progress to Needs feedback
  • Assignee changed from Roman Kučera to Tomáš Doischer
Actions #4

Updated by Tomáš Doischer almost 2 years ago

  • Status changed from Needs feedback to Resolved
  • Assignee changed from Tomáš Doischer to Roman Kučera
  • % Done changed from 80 to 100

Looks and works great, thank you for the changes. :)

Actions #5

Updated by Peter Štrunc almost 2 years ago

  • Target version set to 3.0.2
Actions #6

Updated by Peter Štrunc almost 2 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF