OAuth2 Autorização
Suporte ao framework de autorização OAuth 2.0 no sgcWebSockets. Acesso delegado seguro para aplicações web, desktop e mobile.
Suporte ao framework de autorização OAuth 2.0 no sgcWebSockets. Acesso delegado seguro para aplicações web, desktop e mobile.
uses
sgcHTTP_OAuth2_Client;
var
OAuth: TsgcHTTP_OAuth2_Client;
begin
OAuth := TsgcHTTP_OAuth2_Client.Create(nil);
OAuth.OAuth2Options.ClientId := 'your-client-id';
OAuth.OAuth2Options.ClientSecret := 'your-secret';
OAuth.OAuth2Options.AuthorizationEndpoint :=
'https://auth.example.com/authorize';
OAuth.OAuth2Options.TokenEndpoint :=
'https://auth.example.com/token';
OAuth.Start;
end;