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

Joan Colmenero

10/16/2019, 10:04 AM
Hello guys I'm wondering if there's a "secure" way to do the Basic Authentication with retrofit, I'm about to create a
BasicAuthenticatorInterceptor
that implements
Interceptor
and then create there the Basic Authentication, the thing is I do not like to have the credentials inside the APP, how do I store the credentials to avoid someone that get the source code could do api calls? I was thinking to do an endpoint call first get the credentials from server and then store them in SP but I do not know if I have to encrypt them or what. Any other suggestions?
stackoverflow 2
g

gildor

10/16/2019, 10:05 AM
This is not related to Kotlin
j

Joan Colmenero

10/16/2019, 10:31 AM
There's no channel #retrofit 😕
g

gildor

10/16/2019, 10:35 AM
There is no channel for such questions on this Slack, because it’s not related to Kotlin The closest one is #squarelibraries, but I believe it’s also offtopic for this channle
j

Joan Colmenero

10/16/2019, 10:37 AM
ok thanks 🙂
j

Jorge R

10/16/2019, 3:10 PM
Hi Skizo
These are the links I’ve followed to write authenticator in android
Good luck!
11 Views