kalinjul / kotlin-multiplatform-oidc

Kotlin Multiplatform OpenIDConnect implementation for Android/iOS
https://kalinjul.github.io/kotlin-multiplatform-oidc/
Apache License 2.0
39 stars 15 forks source link

Firefox (Android) not handling redirect #61

Open DatL4g opened 1 month ago

DatL4g commented 1 month ago

Seems like the redirect isn't handled with the Firefox browser on Android. Chromium based browsers work fine.

https://github.com/DatL4g/Burning-Series/issues/83

OpenIdConnectClient {
    endpoints {
        authorizationEndpoint = "https://github.com/login/oauth/authorize"
        tokenEndpoint = "https://github.com/login/oauth/access_token"
    }

    clientId = Sekret.githubClientId(BuildKonfig.packageName)
    clientSecret = Sekret.githubClientSecret(BuildKonfig.packageName)
    scope = "read:user"
}

Callback URI:

/** burningseries://github */

addManifestPlaceholders(
    mapOf("oidcRedirectScheme" to "burningseries")
)
kalinjul commented 2 weeks ago

It seems this is not related to this library, i found this post: https://stackoverflow.com/questions/49397439/appauth-android-https-scheme-work-with-firefox-and-other-browser