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

REST: Alterar tabela JWT #221

Open
bjverde opened this issue Mar 9, 2020 · 1 comment
Open

REST: Alterar tabela JWT #221

bjverde opened this issue Mar 9, 2020 · 1 comment
Labels
documentation Create or Improve some documentation enhancement New feature or request

Comments

@bjverde
Copy link
Owner

bjverde commented Mar 9, 2020

Alterar a tabela de banco com tokens JWT e incluir clains reservador

Usar base64 para grava id
https://pt.wikipedia.org/wiki/Base64

@bjverde bjverde added enhancement New feature or request documentation Create or Improve some documentation labels Mar 9, 2020
@bjverde
Copy link
Owner Author

bjverde commented Mar 9, 2020

https://imasters.com.br/back-end/entendendo-o-jwt
Obs: O JWT tem palavras reservadas e recomendadas para serem colocadas dentro do payload. São elas:

“iss” O domínio da aplicação geradora do token
“sub” É o assunto do token, mas é muito utilizado para guarda o ID do usuário
“aud” Define quem pode usar o token
“exp” Data para expiração do token
“nbf” Define uma data para qual o token não pode ser aceito antes dela
“iat” Data de criação do token
“jti” O id do token

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Create or Improve some documentation enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant