Good afternoon, I have a couple of days I can not figure out the registration.

Actually, I have a task. I have a server that, when it gets a request, issues json, I need authorization and issue of a valid token.

How to do it all? Where to begin? Some people write that you can use google authorization, but I don’t understand something.

Help me please.

  • Valid token you must give someone a server? Then - you need to know how to log in on this server. To do this, you can see the code / documentation of this server. All servers are different, as well as different methods of authentication / authorization / identification - this question will not help you. - Goncharov Alexander
  • @GoncharovAleksandr, the server is written by me in php. - Martinez Toni

1 answer 1

On your server, a token saving and deleting mechanism should be configured on your server, and where to get this token, then in your case you have two options: either take it from third-party servers or generate it using various tricky combinations.

And on third-party servers such as google, vk, facebook, twitter there is a lot of documentation on how to get a token.

And the question can be asked not by android but by the Server.

  • May I chat with you on the social network, I would like to ask you questions if you don't mind? - Martinez Toni
  • let's only in the evening - Evgeny Suetin
  • Ok, can I have a link? - Martinez Toni
  • @MartinezToni in my profile - Eugene Suetin