File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -153,6 +153,28 @@ for id in c.results:
153
153
)
154
154
```
155
155
156
+ ## Autenticação JWT
157
+ O SDK passa a fornecer autenticação utilizando tokens de autenticação em
158
+ formato JWT. Os tokens são gerados automaticamente com a inicialização da classe
159
+ de transcrição, além disso em cada requisição são feitas validações do tempo de
160
+ vida do token.
161
+
162
+ ``` python
163
+ from cpqdtrd import TranscriptionClient
164
+
165
+ client = TranscriptionClient(
166
+ api_url = " https://speech.cpqd.com.br/trd/v3" ,
167
+ webhook_port = 443 , # Outbound, precisa de redirecionamento para a WAN
168
+ webhook_host = " 100.100.100.100" , # IP externo ou DNS
169
+ webhook_listener = ' 0.0.0.0' ,
170
+ webhook_protocol = " https" ,
171
+ sl_username = " <Usuário da licença>" ,
172
+ sl_password = " <Senha da licença>" ,
173
+ sl_host = " <Servidor de Autenticação>" ,
174
+ sl_port = " <Porta de Autenticação>"
175
+ )
176
+ ```
177
+
156
178
## Segurança
157
179
158
180
O SDK também serve de exemplo para uma implementação aderente aos requisitos
You can’t perform that action at this time.
0 commit comments