TROHttpApiSimpleAuthenticationManager
Overview
Allows to use Bearer authentication
Location
- Unit: uROHttpApiSimpleAuthenticationManager.pas
- Ancestry: TComponent | TROComponent | TROHttpApiBaseAuthenticationManager | TROHttpApiSimpleAuthenticationManager
constructor Create override
Standard component constructor
constructor Create(aOwner: TComponent)
Parameters:
- aOwner: Owner
Assign override (declared in TROComponent)
Copies the contents of another, similar object.
procedure Assign(Source: TPersistent)
Parameters:
- Source: Instance whose properties will be copied
CORSCompatible
property CORSCompatible: Boolean read write default False
DoWriteMethodSecurity protected override
procedure DoWriteMethodSecurity(aMethodRoot: TROJSONObject; aServiceName: string; aMethodName: string)
Parameters:
- aMethodRoot:
- aServiceName:
- aMethodName:
DoWriteServerSecurity protected override
procedure DoWriteServerSecurity(aRoot: TROJSONObject)
Parameters:
- aRoot:
DoWriteServerSecurityDefinitions protected override
procedure DoWriteServerSecurityDefinitions(aRoot: TROJSONObject)
Parameters:
- aRoot:
IsNeedSession (declared in TROHttpApiBaseAuthenticationManager)
function IsNeedSession(aServiceName: string; aMethodName: string): Boolean
Parameters:
- aServiceName:
- aMethodName:
Notification protected override (declared in TROComponent)
Forwards notification messages to all owned components.
procedure Notification(aComponent: TComponent; Operation: TOperation)
Parameters:
- aComponent: component
- Operation: operation
OnCanWriteMethodSecurity (declared in TROHttpApiBaseAuthenticationManager)
property OnCanWriteMethodSecurity: TROHttpApiCanWriteMethodSecurity read write
delegate: procedure OnCanWriteMethodSecurity(aServiceName: string; aMethodName: string; var CanWrite: Boolean)
ReadAuthenticationInfo override
function ReadAuthenticationInfo(aRequest: IROHTTPRequest): TROHttpApiSession
Parameters:
- aRequest:
ROFreeNotification (declared in TROComponent)
Forwards notification messages to all owned components.
procedure ROFreeNotification(aComponent: TComponent)
Parameters:
- aComponent: component
RORemoveFreeNotification (declared in TROComponent)
Forwards notification messages to all owned components.
procedure RORemoveFreeNotification(aComponent: TComponent)
Parameters:
- aComponent: component
SecurityMode (declared in TROHttpApiBaseAuthenticationManager)
property SecurityMode: TROHttpApiSecurityMode read write
SendRemoveNotification protected (declared in TROComponent)
Forwards notification messages to all owned components.
procedure SendRemoveNotification(aComponent: TComponent)
Parameters:
- aComponent: component
SessionManager (declared in TROHttpApiBaseAuthenticationManager)
property SessionManager: TROCustomSessionManager read write
WriteAuthenticationInfo override
procedure WriteAuthenticationInfo(aResponse: IROHTTPResponse; aSessionInfo: TROHttpApiSession)
Parameters:
- aResponse:
- aSessionInfo:
WriteMethodSecurity (TROJSONObject) overload (declared in TROHttpApiBaseAuthenticationManager)
procedure WriteMethodSecurity(aMethodRoot: TROJSONObject)
Parameters:
- aMethodRoot:
WriteMethodSecurity (TROJSONObject, string, string) overload (declared in TROHttpApiBaseAuthenticationManager)
procedure WriteMethodSecurity(aMethodRoot: TROJSONObject; aServiceName: string; aMethodName: string)
Parameters:
- aMethodRoot:
- aServiceName:
- aMethodName:
WriteServerSecurity (declared in TROHttpApiBaseAuthenticationManager)
procedure WriteServerSecurity(aRoot: TROJSONObject)
Parameters:
- aRoot:
WriteServerSecurityDefinitions (declared in TROHttpApiBaseAuthenticationManager)
procedure WriteServerSecurityDefinitions(aRoot: TROJSONObject)
Parameters:
- aRoot:
CORSCompatible
property CORSCompatible: Boolean read write default False
SecurityMode (declared in TROHttpApiBaseAuthenticationManager)
property SecurityMode: TROHttpApiSecurityMode read write
SessionManager (declared in TROHttpApiBaseAuthenticationManager)
property SessionManager: TROCustomSessionManager read write
constructor Create override
Standard component constructor
constructor Create(aOwner: TComponent)
Parameters:
- aOwner: Owner
Assign override (declared in TROComponent)
Copies the contents of another, similar object.
procedure Assign(Source: TPersistent)
Parameters:
- Source: Instance whose properties will be copied
DoWriteMethodSecurity protected override
procedure DoWriteMethodSecurity(aMethodRoot: TROJSONObject; aServiceName: string; aMethodName: string)
Parameters:
- aMethodRoot:
- aServiceName:
- aMethodName:
DoWriteServerSecurity protected override
procedure DoWriteServerSecurity(aRoot: TROJSONObject)
Parameters:
- aRoot:
DoWriteServerSecurityDefinitions protected override
procedure DoWriteServerSecurityDefinitions(aRoot: TROJSONObject)
Parameters:
- aRoot:
IsNeedSession (declared in TROHttpApiBaseAuthenticationManager)
function IsNeedSession(aServiceName: string; aMethodName: string): Boolean
Parameters:
- aServiceName:
- aMethodName:
Notification protected override (declared in TROComponent)
Forwards notification messages to all owned components.
procedure Notification(aComponent: TComponent; Operation: TOperation)
Parameters:
- aComponent: component
- Operation: operation
ReadAuthenticationInfo override
function ReadAuthenticationInfo(aRequest: IROHTTPRequest): TROHttpApiSession
Parameters:
- aRequest:
ROFreeNotification (declared in TROComponent)
Forwards notification messages to all owned components.
procedure ROFreeNotification(aComponent: TComponent)
Parameters:
- aComponent: component
RORemoveFreeNotification (declared in TROComponent)
Forwards notification messages to all owned components.
procedure RORemoveFreeNotification(aComponent: TComponent)
Parameters:
- aComponent: component
SendRemoveNotification protected (declared in TROComponent)
Forwards notification messages to all owned components.
procedure SendRemoveNotification(aComponent: TComponent)
Parameters:
- aComponent: component
WriteAuthenticationInfo override
procedure WriteAuthenticationInfo(aResponse: IROHTTPResponse; aSessionInfo: TROHttpApiSession)
Parameters:
- aResponse:
- aSessionInfo:
WriteMethodSecurity (TROJSONObject) overload (declared in TROHttpApiBaseAuthenticationManager)
procedure WriteMethodSecurity(aMethodRoot: TROJSONObject)
Parameters:
- aMethodRoot:
WriteMethodSecurity (TROJSONObject, string, string) overload (declared in TROHttpApiBaseAuthenticationManager)
procedure WriteMethodSecurity(aMethodRoot: TROJSONObject; aServiceName: string; aMethodName: string)
Parameters:
- aMethodRoot:
- aServiceName:
- aMethodName:
WriteServerSecurity (declared in TROHttpApiBaseAuthenticationManager)
procedure WriteServerSecurity(aRoot: TROJSONObject)
Parameters:
- aRoot:
WriteServerSecurityDefinitions (declared in TROHttpApiBaseAuthenticationManager)
procedure WriteServerSecurityDefinitions(aRoot: TROJSONObject)
Parameters:
- aRoot:
OnCanWriteMethodSecurity (declared in TROHttpApiBaseAuthenticationManager)
property OnCanWriteMethodSecurity: TROHttpApiCanWriteMethodSecurity read write
delegate: procedure OnCanWriteMethodSecurity(aServiceName: string; aMethodName: string; var CanWrite: Boolean)