Auth0.Android icon indicating copy to clipboard operation
Auth0.Android copied to clipboard

Add Incognito Custom Tab (Ephemeral Session) support to Android Auth0 SDK

Open sachin-tripactions opened this issue 1 year ago • 3 comments

Checklist

  • [X] I have looked into the Readme, Examples, and FAQ and have not found a suitable solution or answer.
  • [X] I have looked into the API documentation and have not found a suitable solution or answer.
  • [X] I have searched the issues and have not found a suitable solution or answer.
  • [X] I have searched the Auth0 Community forums and have not found a suitable solution or answer.
  • [X] I agree to the terms within the Auth0 Code of Conduct.

Describe the problem you'd like to have solved

The problem I would like to have solved is the lack of support for Incognito Custom Tab (Ephemeral Session) in the Android Auth0 SDK. Currently, the SDK does not provide a way to open an Incognito Custom Tab with an ephemeral session, which can be useful for scenarios where the user wants to authenticate without leaving any traces on the device. Our iOS app uses the iOS Auth0 SDK and is able to solve issues related to web cookies by implementing similar functionality since it has Ephemeral Session feature.

Describe the ideal solution

The ideal solution would be to enhance the Android Auth0 SDK by adding support for Incognito Custom Tab with an ephemeral session. This would allow developers to easily integrate this feature into their applications and provide a more secure and privacy-focused authentication experience for their users. Also not having to deal with issues related to cookies which intersect our web apps.

Alternatives and current workarounds

I have tried explicit logout - but it does not solve issue for our use-case since web app can be logged in anytime through email deeplinks.

Additional context

No response

sachin-tripactions avatar Feb 07 '24 22:02 sachin-tripactions

+1. The current sign out behavior where the browser opens for a split second just to clear some cookies is honestly a bit ridiculous from a user experience perspective. Would love to see if there is a way we can avoid having to do that.

trod-123 avatar Sep 09 '24 19:09 trod-123

I'm shocked this isn't already supported. This essentially prevents being able to switch users without tapping log out. (Expired JWT)

10ndavis avatar Sep 30 '24 20:09 10ndavis

Please implement ASAP

JiangHongTiao avatar Oct 10 '24 11:10 JiangHongTiao

Hi ,Apologies on the delayed response. After an initial investigation we observed there is no officially supported APIs to open an Incognito Custom Tab. Hence this might take some while before we add this feature support officially

pmathew92 avatar Dec 13 '24 07:12 pmathew92

Closing this for now. Please feel free to reopen this if you have any more comments

pmathew92 avatar Feb 03 '25 10:02 pmathew92

Hi ,Apologies on the delayed response. After an initial investigation we observed there is no officially supported APIs to open an Incognito Custom Tab. Hence this might take some while before we add this feature support officially

Hi @pmathew92, It looks like there is now an API for ephemeral sessions but sadly it's still in alpha. Hopefully it's on the teams' radar as it's a much-needed feature from a security standpoint. Thank you 😄

StanGomes avatar Apr 11 '25 16:04 StanGomes

Hi @StanGomes , thanks for bringing this to our notice. Will keep a track of this and will add the support once the api becomes production ready

pmathew92 avatar Apr 11 '25 17:04 pmathew92

Hi everyone, version 1.9.0 has added support for Ephemeral Session but requires Gradle 8.9.1 or above . The Auth0.Android SDK currently uses Gradle version 7.4.0 and updating this reqiures a bit of work on our side. We will add this support once we have updated the gradle dependencies. Thank you for your patience

pmathew92 avatar Aug 21 '25 05:08 pmathew92

Great, thank you a lot. Can't wait for it! Not sure where to ask, as this is Android repo, but do you plan to release also Kotlin Multiplatform version of the library?

JiangHongTiao avatar Aug 21 '25 07:08 JiangHongTiao

Hi @JiangHongTiao , We do have the plan for the Multiplatform library but it is still in very early stages of discussion .

pmathew92 avatar Aug 21 '25 08:08 pmathew92