cevheri/java-blog-web-app

1. Register & Login - Kullanıcı doğrulama (authentication)

Closed this issue · 2 comments

1. Register & Login - Kullanıcı doğrulama (authentication)

Authentication API:
curl -X 'POST' \ 'http://localhost:9000/api/authenticate' \ -H 'accept: */*' \ -H 'Content-Type: application/json' \ -H 'Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsImF1dGgiOiJST0xFX0FETUlOLFJPTEVfVVNFUiIsImV4cCI6MTY1NTE0NDM5OX0.WHKbNgEmbL8qt9GylWaj4g0Wo3SkSTdNQeU36fUTVErKRGJcckwHEBeweE0HrOLUGwZVmWVLNNfZDexpRL_Q4w' \ -d '{ "username": "admin", "password": "admin", "rememberMe": true }'

isAuthenticate API:

curl -X 'GET' \ 'http://localhost:9000/api/authenticate' \ -H 'accept: */*' \ -H 'Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsImF1dGgiOiJST0xFX0FETUlOLFJPTEVfVVNFUiIsImV4cCI6MTY1NTE0NDM5OX0.WHKbNgEmbL8qt9GylWaj4g0Wo3SkSTdNQeU36fUTVErKRGJcckwHEBeweE0HrOLUGwZVmWVLNNfZDexpRL_Q4w'