https://kotlinlang.org logo
#android
Title
# android
m

moos3

05/18/2017, 2:28 PM
question, i'm trying to learn kotlin for android (I'm a BRAND Spanking new mobile developer) How would I handle authentication against my rest end point?
v

vincentloi

05/18/2017, 2:30 PM
moos3: Authentication as in user or API level?
m

moos3

05/18/2017, 3:44 PM
so I have a api that I want to send my username and password to and have my web api end point return a json containing a JWT
v

vincentloi

05/18/2017, 3:46 PM
Sure, so essentially just your regular POST request and parsing the JWT back as a string for example?
m

moos3

05/18/2017, 5:49 PM
yeah
well theres some hashing of the password before it leaves the device but basically
v

vincentloi

05/18/2017, 7:34 PM
I see. You should look at networking libraries like Volley or Fuel which is written in Kotlin. Is your hashing using JWT too? They also have a Java SDK for that
3 Views