What is JWT and how is it used?

JWT, or JSON Web Token, is an open standard used to share security information between two parties — a client and a server . Each JWT contains encoded JSON objects, including a set of claims. JWTs are signed using a cryptographic algorithm to ensure that the claims cannot be altered after the token is issued.

Read more

Token kontrolü nasıl yapılır?

Tokenın geçerli olup olmadığı JWT ile doğrulanır. JWT doğrulama işlemi oldukça basittir. Gelen tokenda Header(1. kısım) ve Payload(2. kısım) sunucumuzda bulunan gizli anahtar ile imzalanır ve 3. kısım hesaplanır. Daha sonra bu oluşturulan imza(3. kısım) client tarafından gelen imza ile karşılaştırılır.

Read more

What is claims in Spring Security?

what are claims? claim is piece of information that describes given identity on some aspect . take claim as name-value pair. claims are held in authentication token that may have also signature so you can be sure that token is not tampered on its way from remote machine to your system.

Read more