File tree Expand file tree Collapse file tree 3 files changed +33
-7
lines changed
auth0/src/main/java/com/auth0/android/provider Expand file tree Collapse file tree 3 files changed +33
-7
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,22 @@ Android Java & Kotlin toolkit for consuming the Auth0 Authentication API
1212
1313## Requirements
1414
15- Android API version 21 or newer
15+ Android API version 21 or later and Java 8+.
16+
17+ Here’s what you need in ` build.gradle ` to target Java 8 byte code for Android and Kotlin plugins respectively.
18+
19+ ``` groovy
20+ android {
21+ compileOptions {
22+ sourceCompatibility JavaVersion.VERSION_1_8
23+ targetCompatibility JavaVersion.VERSION_1_8
24+ }
25+
26+ kotlinOptions {
27+ jvmTarget = '1.8'
28+ }
29+ }
30+ ```
1631
1732## Installation
1833
Original file line number Diff line number Diff line change @@ -4,7 +4,22 @@ v2 of the Auth0 Android SDK includes a number of improvements to integrating Aut
44
55## Requirements changes
66
7- v2 requires Android API version 21 or later.
7+ v2 requires Android API version 21 or later and Java 8+.
8+
9+ Here’s what you need in ` build.gradle ` to target Java 8 byte code for Android and Kotlin plugins respectively.
10+
11+ ``` groovy
12+ android {
13+ compileOptions {
14+ sourceCompatibility JavaVersion.VERSION_1_8
15+ targetCompatibility JavaVersion.VERSION_1_8
16+ }
17+
18+ kotlinOptions {
19+ jvmTarget = '1.8'
20+ }
21+ }
22+ ```
823
924## OIDC only
1025
Original file line number Diff line number Diff line change 1111import static android .text .TextUtils .isEmpty ;
1212
1313class IdTokenVerifier {
14- private static final Integer DEFAULT_CLOCK_SKEW = 60 ; //1 min = 60 sec
15-
16- private static final String NONCE_CLAIM = "nonce" ;
17- private static final String AZP_CLAIM = "azp" ;
18- private static final String AUTH_TIME_CLAIM = "auth_time" ;
14+ private static final Integer DEFAULT_CLOCK_SKEW = 60 ; // 1 min = 60 sec
1915
2016 /**
2117 * Verifies a provided ID Token follows the OIDC specification.
You can’t perform that action at this time.
0 commit comments