Class TRALServerJWTAuth

Unit

Declaration

type TRALServerJWTAuth = class(TRALAuthServer)

Description

JWT Authenticator for server components

Hierarchy

Overview

Methods

Public constructor Create(AOwner: TComponent); override;
Public destructor Destroy; override;
Public function GetToken(var AJSONParams: StringRAL): StringRAL;
Public function RenewToken(const AToken: StringRAL; var AJSONParams: StringRAL): StringRAL;
Protected function GetAuthRoute: TRALBaseRoute; override;
Public procedure BeforeValidate(ARequest: TRALRequest; AResponse: TRALResponse); override;
Public procedure Validate(ARequest: TRALRequest; AResponse: TRALResponse); override;
Protected procedure SetAuthRoute(ARoute: TRALBaseRoute); override;

Properties

Published property Algorithm: TRALJWTAlgorithm read FAlgorithm write FAlgorithm;
Published property AuthRoute;
Published property ExpirationSecs: IntegerRAL read FExpSecs write FExpSecs;
Published property JSONKey: StringRAL read FJSONKey write FJSONKey;
Published property OnGetToken: TRALOnTokenJWT read FOnGetToken write FOnGetToken;
Published property OnValidate: TRALOnTokenJWT read FOnValidate write FOnValidate;
Published property SignSecretKey: StringRAL read FSignSecretKey write FSignSecretKey;

Description

Methods

Public constructor Create(AOwner: TComponent); override;
 
Public destructor Destroy; override;
 
Public function GetToken(var AJSONParams: StringRAL): StringRAL;
 
Public function RenewToken(const AToken: StringRAL; var AJSONParams: StringRAL): StringRAL;
 
Protected function GetAuthRoute: TRALBaseRoute; override;
 
Public procedure BeforeValidate(ARequest: TRALRequest; AResponse: TRALResponse); override;
 
Public procedure Validate(ARequest: TRALRequest; AResponse: TRALResponse); override;

Validation process of the authentication is made here

Protected procedure SetAuthRoute(ARoute: TRALBaseRoute); override;
 

Properties

Published property Algorithm: TRALJWTAlgorithm read FAlgorithm write FAlgorithm;
 
Published property AuthRoute;
 
Published property ExpirationSecs: IntegerRAL read FExpSecs write FExpSecs;
 
Published property JSONKey: StringRAL read FJSONKey write FJSONKey;
 
Published property OnGetToken: TRALOnTokenJWT read FOnGetToken write FOnGetToken;
 
Published property OnValidate: TRALOnTokenJWT read FOnValidate write FOnValidate;
 
Published property SignSecretKey: StringRAL read FSignSecretKey write FSignSecretKey;
 


GitHub Repository
Generated by PasDoc 0.16.0.