Any example apps that implement a full oauth/login...
# multiplatform
d
Any example apps that implement a full oauth/login workflow? ex: https://ktor.io/docs/server-oauth.html#flow I did look at the nytimes/notflix/droidcon/shopping sample apps https://www.jetbrains.com/help/kotlin-multiplatform-dev/multiplatform-samples.html However they just seem to use a preconfigured api key or (in the case of the shopping app) never actually implemented it.
o
What do you mean, a client app using OAuth? You point to Ktor server doc, reason why I'm lost. If you want a client app doing oauth/login flow, you can take a look here https://github.com/opatry/taskfolio/blob/main/google/oauth-http/src/commonMain/kotlin/net/opatry/google/auth/HttpGoogleAuthenticator.kt#L100
The Android app uses native Google sign-in, the desktop app spawns a short live HTTP server to listen for OAuth callback. The impl can also be used on Android, it's just less integrated. The example relies on Google OAuth but can be adjusted quite easily to another service.
d
Sorry about that. I'm new to android dev and kotlin mp and trying to port over a little prototype I made in React Native to compare and possibly switch. That link was the only docs I found that seemed to vaguely talk about the oauth workflow. Once I was done with the kotlin mp tutorial I felt like I didn't know where to go next. The react native docs go a bit deeper into navigation\linking for handling the multiple screens and auth callback. I was hoping to find a sample project as a starting point so I don't have to implement all the details myself. Let me take a look at the link you shared.
o
The easiest is to run it and step debug I think.