https://kotlinlang.org logo
#ktor
Title
# ktor
c

christophsturm

03/06/2020, 10:56 AM
does ktor have an oauth2 client?
c

cy

03/06/2020, 1:53 PM
Not yet
c

christophsturm

03/06/2020, 1:55 PM
is it planned?
s

Sam

03/07/2020, 2:53 AM
I used platform specific libraries on iOS and Android to initiate and perform the oauth flow. Following that I created an auth provider similar to the basic auth provider that inserts the authorization bearer token into the request headers. In my situation, the tokens are only good for one hour so the config needs to be updatable to receive a new token every so often. The refresh token call is also handled by the platform libraries.
12 Views