D
D
da212020-05-28 17:31:53
Java
da21, 2020-05-28 17:31:53

How to make authorization in the Android application?

I have a server to which I send the entered data using a request and get back the Token and information and the user. How can I make it right so that the authorized state is saved and I don’t have to re-enter the login with a password every time I start it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
Orkhan, 2020-05-28
Hasanly @azerphoenix

You can also implement JWT authorization (bearer token).
And then every time you start your application, instead of entering a login and password, you send a token to the server and authorize the user. The server on what at you is written? Is a framework being used?
For example, here is a solution for Spring + Spring Security
https://www.callicoder.com/spring-boot-spring-secu...
https://habr.com/en/post/278411/
https://github. com/hantsy/springboot-jwt-sample
https://auth0.com/blog/implementing-jwt-authentica...
https://www.baeldung.com/spring-security-oauth-jwt

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question