https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
p

pers

03/06/2024, 9:08 PM
KMM is missing auth0 and stripe to be prefect , is there anyway to implement those without kotlin
a

Alex Acosta

03/07/2024, 1:12 AM
Honestly you can implement those using actual/expect, is just using Ktor requests and launching ChromeCustomTab/SFSafariWebView.
p

pers

03/07/2024, 7:04 PM
@Alex Acosta give me start point or video plz plz
s

Stefan Oltmann

03/08/2024, 6:01 AM
Look at the ktor oauth (bearer auth) tutorial. That helped a lot. Don’t go for a webview. Most services require a real browser for security reasons. You can’t log in to OneDrive with a WebView anymore for example.
🙌 1
p

pers

03/08/2024, 3:32 PM
thank you
a

Alex Acosta

03/08/2024, 3:34 PM
I'm sorry to answer late, as Stefan says thats a good starting point. OAuth process is so very standard, you can create an interface that can later define per platform (actual/expect) how to play with the external WebViews.
p

pers

03/08/2024, 3:34 PM
thank you too so much
r

Richard Woollcott

03/11/2024, 10:24 AM
Hi @pers, it would be worth you taking a look at this repo - I've used it for a project and found it worked well https://github.com/kalinjul/kotlin-multiplatform-oidc/tree/main
p

pers

03/11/2024, 10:57 AM
@Richard Woollcott thank you
👍 1
6 Views