AuthenticationErrorDetector
- Namespace:
PPDS.Dataverse.Resilience - Assembly:
PPDS.Dataverse - Kind: Class
Summary
Detects authentication and authorization failures from Dataverse operations.
Members
Methods
GetUserMessage
string GetUserMessage(Exception exception)
Gets a user-friendly message for an authentication failure.
-
Param
exception: The exception to describe. -
Returns: A user-friendly error message.
IsAuthenticationFailure
bool IsAuthenticationFailure(Exception exception)
Checks if an exception indicates an authentication or authorization failure.
-
Param
exception: The exception to check. -
Returns: True if this is an authentication or authorization failure.
RequiresReauthentication
bool RequiresReauthentication(Exception exception)
Checks if an exception indicates a token/credential failure that requires re-authentication.
-
Param
exception: The exception to check. -
Returns: True if this is a token failure requiring re-authentication.