The Custom External Token Validator Provider enables the validation and interpretation of tokens generated by external identity providers (SSO, external authentication services, mobile token services, etc.) within Kuika. This provider allows access tokens originating from outside Kuika to be verified, ensuring user information is securely transferred to the system.

Creation Steps
Custom External Token Validator Class
The Custom External Token Validator class implements the IExternalTokenValidator interface and manages the external token validation process coming to Kuika.
public class CustomExternalTokenValidator : IExternalTokenValidatorTokenProviderType Property
public EExternalTokenProviderTypes TokenProviderType =>EExternalTokenProviderTypes.External1;Validate Method
public ExternalTokenResult Validate(ExternalTokenRequest request)Used to check the validity of the external token received by Kuika and return the user information as the validation result.
Tasks:
Example Return:
return new ExternalTokenResult(){RefreshToken = request.RefreshToken,Token = request.TokenString,UserName = request.Username,Name = null,Surname = null,PhoneNumber = null};
RefreshToken Method
public ExternalTokenResult RefreshToken(ExternalRefreshTokenRequest request)Enables tokens that have expired or need to be renewed to be updated via the refresh token.
Tasks:
Example Return:
return new ExternalTokenResult(){RefreshToken = request.RefreshToken,Token = request.TokenString};