Back

Custom SSO with Keycloak and OIDC in Kotlin: Help Needed

  • 0
  • Self Hosted
  • Auth
  • Android
Fortun18
3 Jul, 2024, 10:53

Hi everyone,

I'm integrating Appwrite as a BaaS for a mobile application I'm building in Kotlin, and I'm trying to set up custom SSO using Keycloak with the OIDC protocol. I'm facing a few issues and would appreciate some help:

Success Redirect: After hitting sign in, the app is not redirecting back to the application. I assume a deep link redirect URL is missing. How can I properly configure this?

Fetching Username: We need to fetch the username under the scope. Any guidance on how to achieve this would be helpful.

Session Management: We need to store sessions so that users don't have to log in every time they open the app, but I haven't found documentation for this. We also need to implement a sign-out button and fetch the username to display in the app.

OIDC User Details: There is documentation for fetching user details, but it's not working for OIDC. Some identifiers are not recognized by Kotlin. Any solutions or workarounds?

Thanks in advance for your help!

TL;DR
- Developers integrating Appwrite in Kotlin seek help with custom SSO using Keycloak and OIDC. - Need to fix redirect issue after sign in, fetch username, manage sessions, implement sign-out button, and display username in the app. - Documentation lacking in areas like configuring redirect URLs, storing sessions, and fetching user details. - Possible solutions: Check for missing deep link redirect URL for proper sign-in redirection, explore ways to fetch username under the scope, implement session management for persistent logins, troubleshoot unrecognized identifiers in Kotlin for user details fetching.
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more