horse-jwt
horse-jwt copied to clipboard
Verificar token nos cookies
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;
Bom dia... hoje ainda não temos essa possibilidade... se quiser nos enviar um pull request com a implementação, podemos analisar...