biblioteca sgcWebSockets suporta OAuth2 Autenticação em Server and Client components, próxima versão will include um novo recurso required por AWS Cognito service, quando você tentar autenticar using OAuth2 com Cognito, o service requer que o Server listens em um Secure port, so now Cliente OAuth2 component can use SSL/TLS encryption layer.
The LocalServerOptions property foi updated para allow SSL e configure o certificates, TLS version e more.
Opções do Servidor Local

The LocalServerOptions property de TsgcHTTP_OAuth2_Client foi updated para allow enable SSL conexões e você pode configure o certificate, password, listening port, tls version e more.
Usually setting o certificate file e o listening SSL port será enough para allow OAuth2 client connect com AWS Cognito Services.
Veja abaixo um video which shows how conectar um AWS cognito using sgcWebSockets OAuth2 client component.
});