Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Erro de autenticação Bearer #218

Open
RobertoCAGarcia opened this issue Feb 17, 2023 · 0 comments
Open

[Bug]: Erro de autenticação Bearer #218

RobertoCAGarcia opened this issue Feb 17, 2023 · 0 comments

Comments

@RobertoCAGarcia
Copy link

RobertoCAGarcia commented Feb 17, 2023

Descrição do bug

Coloco a autenticação com Bear, executo a Url --> http://localhost:8082/GetToken?username=rdw&password=123

Entro autenticamente no evento on Get e pego o código do token --> TokenID := AuthOptions.GetToken('{ "url":"' + Params.ItemsString['Host'].AsString + '"}');, o resultado que está na variável TokenId --> jogo na em authorization/Bearer token, ver imagem abaixo

Imagem 1

Depois dou um simples get em uma tabela simples

ele não autoriza, mesmo com o token incluído acima

Imagem 2

vou enviar um vídeo abaixo para maior esclarecimento.

Passos para reproduzir o problema

Exemplo no vídeo em anexo.

Comportamento esperado

(https://user-images.githubusercontent.com/125689357/219752688-3d7bc5ad-959d-4748-b99d-acb6c211c496.mp4)

Imagens do problema

No response

Versão RDW:

2.1.0 (branch)

IDE:

Delphi novo

Sistema Operacional:

Windows

Relator do Problema

No response

@mobius1qwe mobius1qwe added this to the 2.1 milestone Feb 17, 2023
@mobius1qwe mobius1qwe changed the title [Bug]: Erro na autenticação. [Bug]: Erro de autenticação Bearer Feb 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Todo
Development

No branches or pull requests

2 participants