I am trying to authenticate a Spring Boot app (created using jHipster with jwt authentication) from an Android client. What will be a standard procedure to follow. Here are the steps I am trying to implement:
- Use Android form to capture user input of credentials (username and password)
- Call spring security authentication endpoint with user credentials
- Get jwt token from server and save it in the local storage (SQLite in my case)
- Every time the Android app calls a REST endpoint, send jwt token with the request.
Any help/suggestion appreciated.