The Custom External Token Validator Provider enables the validation and interpretation within Kuika of tokens generated by external identity providers (SSO, external authentication services, mobile token services, etc.). Thanks to this provider, access tokens coming from outside Kuika are verified, and user information is securely transferred to the system.
It can be used in the following situations:
Creation steps:

The class in the template implements the IExternalTokenValidator interface and manages the validation process for external tokens received by Kuika.
public EExternalTokenProviderTypes TokenProviderType =>EExternalTokenProviderTypes.External1;This property specifies which “slot” the validator is associated with. It can take values between External1 and External5; the default value is External1.
An incoming request reaches this validator only when it specifies the same slot. The slot is specified in two ways:
public ExternalTokenResult Validate(ExternalTokenRequest request)
Used to check the validity of an external token received by Kuika and return user information as a result of the validation.
Tasks:
Example return:
return new ExternalTokenResult()
{
RefreshToken = request.RefreshToken,
Token = request.TokenString,
UserName = request.Username,
Name = null,
Surname = null,
PhoneNumber = null
};
public ExternalTokenResult RefreshToken(ExternalRefreshTokenRequest request)
Enables the updating of expired or tokens requiring renewal via the refresh token.
Tasks:
Example return:
return new ExternalTokenResult()
{
RefreshToken = request.RefreshToken,
Token = request.TokenString
};