Autorisation OAuth2

Prise en charge du framework d'autorisation OAuth 2.0 dans sgcWebSockets. Accès délégué sécurisé pour les applications web, desktop et mobiles.

CAPACITÉS

  • Authorization Code, Client Credentials, and Implicit grant types
  • PKCE extension for public clients
  • Token refresh and revocation support
  • Built-in token storage and management
  • Customizable scopes and redirect URIs

Exemple Delphi

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;

Prêt à implémenter OAuth2 ?

Télécharge l’essai gratuit et commence à construire en quelques minutes.