question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Migrate AppAuth to Kotlin and split it into two modules

See original GitHub issue

Kotlin became a first class language for Android in 2017 and since then more and more projects adopted it. AppAuth interoperability with Kotlin has been great but it still can benefit from being written in Kotlin.

In addition, this library has two things:

  1. Implementation for OAuth2.0 protocols.
  2. Integration with the Android platform for redirect handling and other parts

We can split this library into two parts.

The first would be a pure kotlin one where OAuth2.0 protocols are implemented and the second would be the platform dependent one where the OS is needed for redirection handling for example.

This can also be an opportunity to Kotlin coroutines instead of AsyncTask and decide if we want to support Kotlin multi-platfrom.

What are your thoughts on this?

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:8
  • Comments:8

github_iconTop GitHub Comments

2reactions
Pertencecommented, Feb 16, 2021

Adding to the discussion, is it interesting to have a demo app written in Kotlin? I can help create one if anyone is interested.

1reaction
agologancommented, Feb 16, 2021

I don’t mind it but I haven’t seen anybody asking for this. It’s probably because Kotlin vs Java semantics are so similar that you can just convert code in your IDE if you want to. Might be a good idea to just start with the Readme examples and see if there are any takers.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Kotlin Android App using AppAuth | Curity Identity Server
This tutorial shows how to run a code example that implements mobile OpenID Connect in a Kotlin App according to RFC8252, using the...
Read more >
Navigation best practices for multi-module projects
To learn how to provide type safety Navigation in a modularized project for the Kotlin DSL and Navigation Compose, check out the Navigation ......
Read more >
Authenticating on Android with the AppAuth Library - Medium
While still within your build. gradle file, go into the defaultConfig node within the android node and add a manifest placeholder using your...
Read more >
How to best divide big app into modules? - Stack Overflow
Basically, i'd approach it by taking a good look at the current architecture, outlining parts of it into specific modules and start moving...
Read more >
Articles tagged oidc - Okta Developer
For years the Okta OIDC SDK was the primary tool mobile developers used to integrate ... that the Okta Mobile SDKs for Swift...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found