Update the Min SDK version for the Auth0.Android SDK 26#953
Open
utkrishtsahu wants to merge 2 commits intov4_developmentfrom
Open
Update the Min SDK version for the Auth0.Android SDK 26#953utkrishtsahu wants to merge 2 commits intov4_developmentfrom
utkrishtsahu wants to merge 2 commits intov4_developmentfrom
Conversation
pmathew92
reviewed
Apr 16, 2026
|
|
||
| fun generateKeyPair(context: Context, useStrongBox: Boolean = true) { | ||
| if (Build.VERSION.SDK_INT < Build.VERSION_CODES.M) { | ||
| throw DPoPException.UNSUPPORTED_ERROR |
Contributor
There was a problem hiding this comment.
We can now remove the DPoPException.UNSUPPORTED_ERROR and related code
pmathew92
requested changes
Apr 16, 2026
Contributor
pmathew92
left a comment
There was a problem hiding this comment.
Lets remove the DPoP UnsupportedError and related code. Also update the migration guide if required for the same
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changes
Updated the minimum SDK version from 21 (Android 5.0) to 26 (Android 8.0) and removed dead code paths that were only reachable on API < 23.
auth0/build.gradle
sample/build.gradle
CryptoUtil.java
DPoPKeyStore.kt
BrowserPicker.java
CryptoUtilTest.java
Auth0UserAgentTest.java
V4_MIGRATION_GUIDE.md
References
SDK-8577
Testing
Verified manually on emulator (API 34) with the sample app:
ROPG login → Get Credentials → Get Credentials (Secure) → Delete Credentials
Web Auth login → Get Credentials → Web Auth logout
All flows use the simplified KeyGenParameterSpec and MATCH_ALL code paths
Existing CryptoUtilTest and Auth0UserAgentTest updated to reflect the new minSdk. Legacy API 21 tests removed. All 1235 tests pass.
Tested on API 34 emulator (Android 14), built with AGP 8.10.1, Gradle 8.11.1, Java 17
Checklist
I have read the Auth0 general contribution guidelines
I have read the Auth0 Code of Conduct
All existing and new tests complete without errors