OAuth2-autorisatie

Ondersteuning voor het OAuth 2.0-autorisatieframework in sgcWebSockets. Veilige gedelegeerde toegang voor web-, desktop- en mobiele toepassingen.

Mogelijkheden

  • Authorization Code-, Client Credentials- en Implicit-grant-types
  • PKCE-uitbreiding voor publieke clients
  • Ondersteuning voor token-refresh en -revocatie
  • Ingebouwde token-opslag en -beheer
  • Aanpasbare scopes en redirect-URI's

Delphi-voorbeeld

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;

Klaar om OAuth2 te implementeren?

Download de gratis proefversie en bouw binnen enkele minuten.