Files
freeipa/ipalib
Stanislav Levin 700be74975 krb_utils: Simplify get_credentials
Previously, `get_credentials` raises either ValueError or re-raises
GSSError. The former makes the handling of this function more difficult
without a good reason.

With this change:
- `get_credentials` no longer handles exceptions by itself, but delegates
this to the callers (which already process GSS errors).
- `get_credentials_if_valid` doesn't raise any expected exceptions, but
return valid credentials (on the moment of calling) or None. This makes
it consistent with docs.

Related: https://pagure.io/freeipa/issue/8873
Signed-off-by: Stanislav Levin <slev@altlinux.org>
Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>
2021-06-14 10:14:34 +03:00
..
2021-03-30 13:18:09 +03:00
2020-02-12 18:08:32 +02:00
2018-07-14 12:04:19 +02:00
2018-09-27 16:11:18 +02:00
2016-11-24 15:46:40 +01:00
2021-05-12 11:55:50 -04:00
2020-07-07 12:36:10 +02:00
2017-02-17 10:22:07 +01:00
2021-04-28 17:11:15 +02:00
2018-09-27 11:49:04 +02:00
2016-10-20 18:43:37 +02:00