N
N
nrskdm2015-05-28 16:03:18
Android
nrskdm, 2015-05-28 16:03:18

How to make a request for authorization token from android client to aspnet web api?

there is a back-end part on asp.net web api. Tokens are used for authorization. With Fiddler, if you make a request, everything works:
host:
localhost:XXXX/token
header :
User-Agent: Fiddler
content-type: application/x-www-form-urlencoded
request body:
username=nursultankdm&password=122793&grant_type=password
How to make such a request in android application so that you can get a token for work

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
vahaketiladze, 2015-06-05
@vahaketiladze

Did you try to shove it into the request header with android?
User-Agent: Fiddler
content-type: application/x-www-form-urlencoded

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question