Unit 'fpoauth2' Package
[Overview][Types][Classes][Index] [#fcl-web]

TOAuth2Handler

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

Declaration

Source position: fpoauth2.pp line 163

type TOAuth2Handler = class(TAbstractRequestSigner)

protected

  function CheckHostedDomain(); virtual;

  function RefreshToken; virtual;

  function CreateOauth2Config; virtual;

  function CreateOauth2Session; virtual;

  function CreateIDToken; virtual;

  procedure Notification(); override;

  procedure DoAuthConfigChange; virtual;

  procedure DoAuthSessionChange(); virtual;

  procedure DoSignRequest(); override;

  property ConfigLoaded: Boolean; [r]

  property SessionLoaded: Boolean; [r]

public

  DefaultConfigClass: TOAuth2ConfigClass;

  DefaultSessionClass: TOAuth2SessionClass;

  constructor Create(); override;

  destructor Destroy; override;

  class function AuthScopeVariableName; virtual;

  class function DefaultHostedDomain; virtual;

  function IsAuthenticated; virtual;

  function AuthenticateURL; virtual;

  function Authenticate; virtual;

  procedure LoadConfig();

  procedure SaveConfig;

  procedure LoadSession();

  procedure SaveSession();

  procedure RefreshIDToken;

  property IDToken: TJWTIDToken; [r]

  property ClaimsClass: TClaimsClass; [rw]

published

  property Config: TOAuth2Config; [rw]

  property Session: TOAuth2Session; [rw]

  property WebClient: TAbstractWebClient; [rw]

  property OnUserConsent: TUserConsentHandler; [rw]

  property OnAuthConfigChange: TOnAuthConfigChangeHandler; [rw]

  property OnAuthSessionChange: TOnAuthSessionChangeHandler; [rw]

  property OnIDTokenChange: TOnIDTokenChangeHandler; [rw]

  property OnSignRequest: TOnAuthConfigChangeHandler; [rw]

  property Store: TAbstractOAuth2ConfigStore; [rw]

  property AutoStore: Boolean; [rw]

  property AutoSession: Boolean; [rw]

  property AutoConfig: Boolean; [rw]

end;

Inheritance

TOAuth2Handler

|

TAbstractRequestSigner

|

TObject


Documentation generated on: 2023-03-18