OAuth2 Yetkilendirme
sgcWebSockets'te OAuth 2.0 yetkilendirme framework desteği. Web, masaüstü ve mobil uygulamalar için güvenli yetkilendirilmiş erişim.
sgcWebSockets'te OAuth 2.0 yetkilendirme framework desteği. Web, masaüstü ve mobil uygulamalar için güvenli yetkilendirilmiş erişim.
uses
sgcHTTP_OAuth2_Client;
var
OAuth: TsgcHTTPOAuth2Client;
begin
OAuth := TsgcHTTPOAuth2Client.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;