Skip to content

Commit

Permalink
fix: catch and fail for too old password
Browse files Browse the repository at this point in the history
  • Loading branch information
sean-freeman committed Sep 14, 2023
1 parent a817ace commit 96c1a30
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions plugins/module_utils/sap_id_sso.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ def sap_sso_login(username, password):
if 'j_username' in meta:
meta['j_username'] = username
meta['j_password'] = password
if 'changePassword' in endpoint:
raise ValueError('SAP ID Service has requested `Change Your Password`, possibly the password is too old. Please reset manually and try again.')

if 'authn' in endpoint:
support_endpoint, support_meta = _get_sso_endpoint_meta(endpoint,
Expand Down

0 comments on commit 96c1a30

Please sign in to comment.