horse-jwt icon indicating copy to clipboard operation
horse-jwt copied to clipboard

Verificar token nos cookies

Open giovanierthal opened this issue 1 year ago • 1 comments

Seria possível buscar pelo Token de autenticação nos cookies?

if LToken.Trim.IsEmpty and not AHorseRequest.Query.TryGetValue( LConfig.Header, LToken) and not AHorseRequest.Query.TryGetValue( LHeaderNormalize, LToken) and not AHorseRequest.Cookie.TryGetValue( LConfig.Header, LToken) and not AHorseRequest.Cookie.TryGetValue( LHeaderNormalize, LToken) then begin AHorseResponse.Send(TOKEN_NOT_FOUND).Status(THTTPStatus.Unauthorized); raise EHorseCallbackInterrupted.Create(TOKEN_NOT_FOUND); end;

giovanierthal avatar Mar 06 '24 17:03 giovanierthal

Bom dia... hoje ainda não temos essa possibilidade... se quiser nos enviar um pull request com a implementação, podemos analisar...

viniciussanchez avatar May 06 '24 12:05 viniciussanchez