mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-21 09:58:13 +00:00
ADD: MacCloud: step-63: add scope for TCloudDriverAuthPKCESession
This commit is contained in:
parent
1bcf3c3519
commit
27f1f3ec5b
3 changed files with 6 additions and 1 deletions
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
Notes:
|
||||
1. the most basic DropBox Client
|
||||
1. the basic DropBox Client
|
||||
2. no dependencies on other libraries
|
||||
}
|
||||
|
||||
|
|
@ -633,6 +633,7 @@ var
|
|||
begin
|
||||
params.config:= config;
|
||||
params.resultProcessFunc:= @DropBoxClientProcessResult;
|
||||
params.scope:= EmptyStr;
|
||||
params.OAUTH2_URI:= DropBoxConst.URI.OAUTH2;
|
||||
params.TOKEN_URI:= DropBoxConst.URI.TOKEN;
|
||||
params.REVOKE_TOKEN_URI:= DropBoxConst.URI.REVOKE_TOKEN;
|
||||
|
|
|
|||
|
|
@ -160,6 +160,7 @@ type
|
|||
TCloudDriverAuthPKCESessionParams = record
|
||||
config: TCloudDriverConfig;
|
||||
resultProcessFunc: TCloudDriverResultProcessFunc;
|
||||
scope: String;
|
||||
OAUTH2_URI: String;
|
||||
TOKEN_URI: String;
|
||||
REVOKE_TOKEN_URI: String;
|
||||
|
|
@ -553,6 +554,8 @@ begin
|
|||
queryItems.Add( 'response_type', 'code' );
|
||||
queryItems.Add( 'token_access_type', 'offline' );
|
||||
queryItems.Add( 'state', _state );
|
||||
if _params.scope <> EmptyStr then
|
||||
queryItems.Add( 'scope', _params.scope );;
|
||||
THttpClientUtil.openInSafari( _params.OAUTH2_URI, queryItems );
|
||||
end;
|
||||
|
||||
|
|
|
|||
|
|
@ -521,6 +521,7 @@ var
|
|||
begin
|
||||
params.config:= config;
|
||||
params.resultProcessFunc:= @YandexClientResultProcess;
|
||||
params.scope:= EmptyStr;
|
||||
params.OAUTH2_URI:= YandexConst.URI.OAUTH2;
|
||||
params.TOKEN_URI:= YandexConst.URI.TOKEN;
|
||||
params.REVOKE_TOKEN_URI:= YandexConst.URI.REVOKE_TOKEN;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue