Skip to content

Repository files navigation

Kinde Android SDK

The Kinde SDK for Android.

You can also use the Android starter kit here.

PRs Welcome Kinde Docs Kinde Community

Documentation

For details on integrating this SDK into your project, head over to the Kinde docs and see the Android SDK doc 👍🏼.

Configuring the redirect scheme

The SDK uses AppAuth to receive the authentication redirect. You choose the redirect scheme for your app by defining the appAuthRedirectScheme manifest placeholder. This must match the scheme of the redirect URLs you register in Kinde and pass to KindeSDK.

Important: This placeholder must be set in your own app module's build.gradle (e.g. app/build.gradle).

// app/build.gradle
android {
    defaultConfig {
        manifestPlaceholders = [appAuthRedirectScheme: 'com.example.myapp']
    }
}

With the placeholder above, your redirect URLs would look like:

val kinde = KindeSDK(
    activity = this,
    loginRedirect = "com.example.myapp://callback",
    logoutRedirect = "com.example.myapp://logout",
    sdkListener = listener
)

Note: From v2.0.0, defining appAuthRedirectScheme in your own app module's build.gradle is required. If the placeholder is missing, the manifest merge will fail at build time.

Upgrading from v1.6.0 or earlier: those versions hardcoded the kinde.sdk scheme. To keep that exact behavior (keeping your redirect URLs or Kinde dashboard configuration as kinde.sdk), set appAuthRedirectScheme: 'kinde.sdk' in your app module's build.gradle e.g.

// app/build.gradle 
android {
    defaultConfig {
        manifestPlaceholders = [appAuthRedirectScheme: 'kinde.sdk']
    }
}

Publishing

The core team handles publishing.

Contributing

Please refer to Kinde’s contributing guidelines.

License

By contributing to Kinde, you agree that your contributions will be licensed under its MIT License.

About

Kinde SDK for Android

Resources

Code of conduct

Contributing

Security policy

Stars

10 stars

Watchers

5 watching

Forks

Releases

Packages

Contributors

Languages