[Properties (by Name)] [Methods (by Name)] [Events (by Name)]
Source position: uCEFOAuth2Helper.pas line 41
type TCEFOAuth2Helper = class |
||
protected |
||
|
||
FRedirectPort: Integer; |
|
|
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
FTokenExpiry: Integer; |
|
|
|
||
|
||
|
||
function GetRedirectURI; virtual; |
|
|
function GetAuthCodeURI; virtual; |
|
|
function GetRefreshParams; virtual; |
|
|
function GetTokeExchangeParams; virtual; |
|
|
function GetValidState; virtual; |
|
|
procedure GenerateRandomCodeChallenge; virtual; |
|
|
procedure GenerateRandomState; virtual; |
|
|
function GenerateRandomString(); |
|
|
procedure ParseQueryPair(); |
|
|
function ReadJSONString(); |
|
|
function ReadJSONInteger(); |
|
|
function CalculateSHA256Hash(); |
|
|
public |
||
constructor Create; |
|
|
procedure Initialize; virtual; |
|
|
function ParseTokenExchangeResponse(); virtual; |
|
|
function ParseRefreshTokenResponse(); virtual; |
|
|
function ParseCodeRequestResponse(); virtual; |
|
|
property AuthEndpoint: ustring; [rw] |
|
|
property TokenEndpoint: ustring; [rw] |
|
|
|
||
property ClientSecret: ustring; [rw] |
|
|
property RedirectHost: ustring; [rw] |
|
|
property RedirectPort: Integer; [rw] |
|
|
property ChallengeMethod: TOAuthChallengeMethod; [rw] |
|
|
|
||
|
||
property ErrorDescription: ustring; [r] |
|
|
property AccessToken: ustring; [r] |
|
|
|
||
property RefreshToken: ustring; [r] |
|
|
property TokenExpiry: Integer; [r] |
|
|
|
||
property CodeVerifier: ustring; [r] |
|
|
property CodeChallenge: ustring; [r] |
|
|
property RedirectURI: ustring; [r] |
|
|
property AuthCodeURI: ustring; [r] |
|
|
property TokeExchangeParams: ustring; [r] |
|
|
property RefreshParams: ustring; [r] |
|
|
property ValidState: Boolean; [r] |
|
|
end; |
|
||
| | ||
TObject |
CT Web help |
CodeTyphon Studio |