Skip to content

Commit e2d424f

Browse files
authored
Adding v3 changes (#790)
1 parent 02ff79d commit e2d424f

File tree

2,849 files changed

+530922
-52810
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

2,849 files changed

+530922
-52810
lines changed

.fernignore

Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
1+
# Specify files that shouldn't be modified by Fern
2+
3+
# README should not be overwritten as it combines both SDKs
4+
README.md
5+
6+
# Examples and Migration Guide from auth0-real
7+
EXAMPLES.md
8+
v3_MIGRATION_GUIDE.md
9+
MIGRATION_GUIDE.md
10+
LICENSE
11+
CHANGELOG.md
12+
13+
# Legacy management API from auth0-real
14+
src/main/java/com/auth0/client/legacy/
15+
16+
# Authentication API (manually maintained from auth0-real)
17+
src/main/java/com/auth0/client/auth/
18+
src/test/java/com/auth0/client/auth/
19+
20+
# Supporting packages from auth0-real
21+
src/main/java/com/auth0/net/
22+
src/main/java/com/auth0/exception/
23+
src/main/java/com/auth0/utils/
24+
src/main/java/com/auth0/json/auth/
25+
src/main/java/com/auth0/json/mgmt/
26+
src/main/java/com/auth0/json/ObjectMapperProvider.java
27+
28+
# Client options from auth0-real
29+
src/main/java/com/auth0/client/HttpOptions.java
30+
src/main/java/com/auth0/client/ProxyOptions.java
31+
src/main/java/com/auth0/client/LoggingOptions.java
32+
33+
# TokenProvider interface (shared between Fern-generated Management API and auth0-provided Authentication API)
34+
src/main/java/com/auth0/client/mgmt/TokenProvider.java
35+
36+
# Test infrastructure from auth0-real
37+
src/test/java/com/auth0/net/
38+
src/test/java/com/auth0/exception/
39+
src/test/java/com/auth0/utils/
40+
src/test/java/com/auth0/json/
41+
src/test/resources/
42+
src/test/resources/auth/
43+
src/test/resources/keys/
44+
src/test/resources/mgmt/
45+
src/test/resources/mockito-extensions/
46+
src/test/java/com/auth0/client/legacy/
47+
48+
# Custom client builder and examples
49+
src/main/java/com/auth0/client/Auth0ClientBuilder.java
50+
src/main/java/com/auth0/client/ClientCredentialsTokenProvider.java
51+
src/main/java/com/auth0/client/ManagementApiWithTokenProvider.java
52+
src/main/java/com/auth0/client/TokenProvider.java
53+
src/main/java/com/auth0/client/interceptors/
54+
55+
# Custom OAuth client credentials support
56+
src/main/java/com/auth0/client/mgmt/core/RequestOptions.java
57+
src/main/java/com/auth0/client/mgmt/core/ClientOptions.java
58+
src/main/java/com/auth0/client/mgmt/core/OAuthTokenSupplier.java
59+
src/main/java/com/auth0/client/mgmt/core/OAuthTokenException.java
60+
61+
# Custom builder with domain-based initialization
62+
src/main/java/com/auth0/client/mgmt/ManagementApiBuilder.java
63+
64+
# Custom tests
65+
src/test/java/com/auth0/client/mgmt/DynamicTokenManagementTest.java
66+
src/test/java/com/auth0/client/mgmt/OAuthTokenSupplierTest.java
67+
src/test/java/com/auth0/client/mgmt/ManagementApiBuilderTest.java
68+
69+
# Configuration files from auth0-real
70+
.codecov.yml
71+
.editorconfig
72+
.semgrepignore
73+
.shiprc
74+
.snyk
75+
.version
76+
opslevel.yml
77+
.fern/
78+
79+
# GitHub workflows
80+
.github/
81+
82+
# Build files and configs
83+
gradle/
84+
gradlew
85+
gradlew.bat
86+
gradle.properties
87+
settings.gradle
88+
build.gradle
89+
sample-app/
90+

.github/workflows/build-and-test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
pull_request:
55
merge_group:
66
push:
7-
branches: ["master", "main", "v1"]
7+
branches: ["master", "main", "v3"]
88

99
jobs:
1010
gradle:
@@ -19,8 +19,8 @@ jobs:
1919
- name: Set up Gradle
2020
uses: gradle/actions/setup-gradle@4d9f0ba0025fe599b4ebab900eb7f3a1d93ef4c2 # v5.0.0
2121

22-
- name: Test and Assemble and ApiDiff with Gradle
23-
run: ./gradlew assemble apiDiff check jacocoTestReport --continue --console=plain
22+
- name: Test and Assemble with Gradle
23+
run: ./gradlew assemble check --continue --console=plain
2424

2525
- uses: codecov/codecov-action@5a1091511ad55cbe89839c7260b706298ca349f7 # v5.5.1
2626
with:

.github/workflows/rl-scanner.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ jobs:
4242
- name: Set up Gradle
4343
uses: gradle/actions/setup-gradle@4d9f0ba0025fe599b4ebab900eb7f3a1d93ef4c2 # v5.0.0
4444

45-
- name: Test and Assemble and ApiDiff with Gradle
46-
run: ./gradlew assemble apiDiff check jacocoTestReport --continue --console=plain
45+
- name: Test and Assemble with Gradle
46+
run: ./gradlew assemble check --continue --console=plain
4747

4848
- id: get_version
4949
uses: ./.github/actions/get-version

.gitignore

Lines changed: 18 additions & 116 deletions
Original file line numberDiff line numberDiff line change
@@ -1,122 +1,24 @@
1-
bin/
2-
3-
# Created by https://www.gitignore.io/api/java,gradle,osx,windows,intellij+iml
4-
5-
### OSX ###
6-
*.DS_Store
7-
.AppleDouble
8-
.LSOverride
9-
10-
# Icon must end with two \r
11-
Icon
12-
# Thumbnails
13-
._*
14-
# Files that might appear in the root of a volume
15-
.DocumentRevisions-V100
16-
.fseventsd
17-
.Spotlight-V100
18-
.TemporaryItems
19-
.Trashes
20-
.VolumeIcon.icns
21-
.com.apple.timemachine.donotpresent
22-
# Directories potentially created on remote AFP share
23-
.AppleDB
24-
.AppleDesktop
25-
Network Trash Folder
26-
Temporary Items
27-
.apdisk
28-
29-
30-
### Windows ###
31-
# Windows thumbnail cache files
32-
Thumbs.db
33-
ehthumbs.db
34-
ehthumbs_vista.db
35-
36-
# Folder config file
37-
Desktop.ini
38-
39-
# Recycle Bin used on file shares
40-
$RECYCLE.BIN/
41-
42-
# Windows Installer files
43-
*.cab
44-
*.msi
45-
*.msm
46-
*.msp
47-
48-
# Windows shortcuts
49-
*.lnk
50-
51-
52-
### Java ###
531
*.class
54-
55-
# BlueJ files
56-
*.ctxt
57-
58-
# Mobile Tools for Java (J2ME)
59-
.mtj.tmp/
60-
61-
# Package Files #
62-
*.jar
63-
*.war
64-
*.ear
65-
66-
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
67-
hs_err_pid*
68-
69-
70-
### Gradle ###
2+
.project
713
.gradle
72-
/build/
73-
74-
# Ignore Gradle GUI config
75-
gradle-app.setting
76-
77-
# Avoid ignoring Gradle wrapper jar file (.jar files are usually ignored)
78-
!gradle-wrapper.jar
79-
80-
# Cache of project
81-
.gradletasknamecache
82-
83-
# # Work around https://youtrack.jetbrains.com/issue/IDEA-116898
84-
# gradle/wrapper/gradle-wrapper.properties
85-
86-
# End of https://www.gitignore.io/api/java,gradle,osx,windows
87-
88-
89-
### Intellij+iml ###
90-
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and Webstorm
91-
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
92-
93-
# User-specific stuff:
94-
.idea/workspace.xml
95-
.idea/tasks.xml
96-
97-
# Sensitive or high-churn files:
98-
.idea/
99-
100-
# Gradle:
101-
.idea/gradle.xml
102-
.idea/libraries
103-
104-
# Mongo Explorer plugin:
105-
.idea/mongoSettings.xml
106-
107-
## File-based project format:
108-
*.iws
109-
110-
### Intellij+iml Patch ###
111-
# Reason: https://github.com/joeblau/gitignore.io/issues/186#issuecomment-249601023
112-
4+
?
5+
.classpath
6+
.checkstyle
7+
.settings
8+
.node
9+
build
10+
11+
# IntelliJ
11312
*.iml
114-
modules.xml
115-
.idea/misc.xml
11613
*.ipr
117-
/out/
14+
*.iws
15+
.idea/
16+
out/
11817

119-
# End of https://www.gitignore.io/api/intellij+iml
18+
# Eclipse/IntelliJ APT
19+
generated_src/
20+
generated_testSrc/
21+
generated/
12022

121-
# NetBeans IDE files
122-
/.nb-gradle/
23+
bin
24+
build

.version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.27.0
1+
3.0.0-beta.0

CHANGELOG.md

Lines changed: 31 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,20 @@
11
# Change Log
22

3+
## [3.0.0-beta.0](https://github.com/auth0/auth0-java/tree/3.0.0-beta.0) (2025-12-18)
4+
[Full Changelog](https://github.com/auth0/auth0-java/compare/2.27.0...3.0.0-beta.0)
5+
6+
> **Warning** This SDK is in beta and is subject to breaking changes. It is not recommended for production use, but your feedback and help in testing is appreciated!
7+
8+
**Added**
9+
- Complete rewrite of the **Management API client** using Fern code generation
10+
- Update OkHttp to 5.2.1
11+
- API attributes can set null for patch operations
12+
- Nullability annotations to POJO classes
13+
- Fully compatible **Authentication API client** — no breaking changes
14+
15+
- [Migration guide](MIGRATION_GUIDE) available for upgrading from v2.x
16+
17+
318
## [2.27.0](https://github.com/auth0/auth0-java/tree/2.27.0) (2025-12-18)
419
[Full Changelog](https://github.com/auth0/auth0-java/compare/2.26.0...2.27.0)
520

@@ -160,7 +175,7 @@
160175

161176
**Added**
162177
- Support organization in client credentials [\#582](https://github.com/auth0/auth0-java/pull/582) ([jimmyjames](https://github.com/jimmyjames))
163-
178+
164179
# [2.8.0](https://github.com/auth0/auth0-java/tree/2.8.0) (2023-11-07)
165180
[Full Changelog](https://github.com/auth0/auth0-java/compare/2.7.0...2.8.0)
166181

@@ -218,7 +233,7 @@
218233
[Full Changelog](https://github.com/auth0/auth0-java/compare/2.1.0...2.2.0)
219234

220235
**Added**
221-
- Add support for client credential management [\#525](https://github.com/auth0/auth0-java/pull/525) ([jimmyjames](https://github.com/jimmyjames))
236+
- Add support for client credential management [\#525](https://github.com/auth0/auth0-java/pull/525) ([jimmyjames](https://github.com/jimmyjames))
222237

223238
**Fixed**
224239
- Fix headers to lowercase [\#528](https://github.com/auth0/auth0-java/pull/528) ([alexz75](https://github.com/alexz75))
@@ -228,7 +243,7 @@
228243
[Full Changelog](https://github.com/auth0/auth0-java/compare/2.0.0...2.1.0)
229244

230245
**Added**
231-
- Add missing LogEvent fields [\#521](https://github.com/auth0/auth0-java/pull/521) ([jimmyjames](https://github.com/jimmyjames))
246+
- Add missing LogEvent fields [\#521](https://github.com/auth0/auth0-java/pull/521) ([jimmyjames](https://github.com/jimmyjames))
232247

233248
**Changed**
234249
- authentication_methods is an object, not a string [\#520](https://github.com/auth0/auth0-java/pull/520) ([jimmyjames](https://github.com/jimmyjames))
@@ -247,7 +262,6 @@
247262
- ... and more!
248263

249264
As a major version release, 2.0.0 does include breaking changes.
250-
Please see the [Migration Guide](MIGRATION_GUIDE.md) for additional details as well as guidance for updating your application.
251265

252266
## [2.0.0 Beta 2](https://github.com/auth0/auth0-java/tree/2.0.0-beta.2) (2023-02-13)
253267
[Full Changelog](https://github.com/auth0/auth0-java/compare/2.0.0-beta.1...2.0.0-beta.2)
@@ -274,8 +288,6 @@ This release introduces several enhancement, including:
274288
- Authentication API improvements to not require a client secret
275289
- ... and more!
276290

277-
Please see the [Migration Guide](MIGRATION_GUIDE.md) for guidance on updating your application.
278-
279291
## [1.44.2](https://github.com/auth0/auth0-java/tree/1.44.2) (2023-01-11)
280292
[Full Changelog](https://github.com/auth0/auth0-java/compare/1.44.1...1.44.2)
281293

@@ -839,18 +851,17 @@ ManagementAPI mgmt = new ManagementAPI("{YOUR_DOMAIN}", "{YOUR_API_TOKEN}");
839851

840852
The Management API is divided into different entities. Each of them have the list, create, update, delete and update methods plus a few more if corresponds. The calls are authenticated using the API Token given in the `ManagementAPI` instance creation and must contain the `scope` required by each entity. See the javadoc for details on which `scope` is expected for each call.
841853

842-
* **Client Grants:** See [Docs](https://auth0.com/docs/api/management/v2#!/Client_Grants/get_client_grants). Access the methods by calling `mgmt.clientGrants()`.
843-
* **Clients:** See [Docs](https://auth0.com/docs/api/management/v2#!/Clients/get_clients). Access the methods by calling `mgmt.clients()`.
844-
* **Connections:** See [Docs](https://auth0.com/docs/api/management/v2#!/Connections/get_connections). Access the methods by calling `mgmt.connections()`.
845-
* **Device Credentials:** See [Docs](https://auth0.com/docs/api/management/v2#!/Device_Credentials/get_device_credentials). Access the methods by calling `mgmt.deviceCredentials()`.
846-
* **Logs:** See [Docs](https://auth0.com/docs/api/management/v2#!/Logs/get_logs). Access the methods by calling `mgmt.logEvents()`.
847-
* **Rules:** See [Docs](https://auth0.com/docs/api/management/v2#!/Rules/get_rules). Access the methods by calling `mgmt.rules()`.
848-
* **User Blocks:** See [Docs](https://auth0.com/docs/api/management/v2#!/User_Blocks/get_user_blocks). Access the methods by calling `mgmt.userBlocks()`.
849-
* **Users:** See [Docs](https://auth0.com/docs/api/management/v2#!/Users/get_users). Access the methods by calling `mgmt.users()`.
850-
* **Blacklists:** See [Docs](https://auth0.com/docs/api/management/v2#!/Blacklists/get_tokens). Access the methods by calling `mgmt.blacklists()`.
851-
* **Emails:** See [Docs](https://auth0.com/docs/api/management/v2#!/Emails/get_provider). Access the methods by calling `mgmt.emailProvider()`.
852-
* **Guardian:** See [Docs](https://auth0.com/docs/api/management/v2#!/Guardian/get_factors). Access the methods by calling `mgmt.guardian()`.
853-
* **Stats:** See [Docs](https://auth0.com/docs/api/management/v2#!/Stats/get_active_users). Access the methods by calling `mgmt.stats()`.
854-
* **Tenants:** See [Docs](https://auth0.com/docs/api/management/v2#!/Tenants/get_settings). Access the methods by calling `mgmt.tenants()`.
854+
* **Client Grants:** See [Docs](https://auth0.com/docs/api/management/v2#!/Client_Grants/get_client_grants). Access the methods by calling `mgmt.clientGrants()`.
855+
* **Clients:** See [Docs](https://auth0.com/docs/api/management/v2#!/Clients/get_clients). Access the methods by calling `mgmt.clients()`.
856+
* **Connections:** See [Docs](https://auth0.com/docs/api/management/v2#!/Connections/get_connections). Access the methods by calling `mgmt.connections()`.
857+
* **Device Credentials:** See [Docs](https://auth0.com/docs/api/management/v2#!/Device_Credentials/get_device_credentials). Access the methods by calling `mgmt.deviceCredentials()`.
858+
* **Logs:** See [Docs](https://auth0.com/docs/api/management/v2#!/Logs/get_logs). Access the methods by calling `mgmt.logEvents()`.
859+
* **Rules:** See [Docs](https://auth0.com/docs/api/management/v2#!/Rules/get_rules). Access the methods by calling `mgmt.rules()`.
860+
* **User Blocks:** See [Docs](https://auth0.com/docs/api/management/v2#!/User_Blocks/get_user_blocks). Access the methods by calling `mgmt.userBlocks()`.
861+
* **Users:** See [Docs](https://auth0.com/docs/api/management/v2#!/Users/get_users). Access the methods by calling `mgmt.users()`.
862+
* **Blacklists:** See [Docs](https://auth0.com/docs/api/management/v2#!/Blacklists/get_tokens). Access the methods by calling `mgmt.blacklists()`.
863+
* **Emails:** See [Docs](https://auth0.com/docs/api/management/v2#!/Emails/get_provider). Access the methods by calling `mgmt.emailProvider()`.
864+
* **Guardian:** See [Docs](https://auth0.com/docs/api/management/v2#!/Guardian/get_factors). Access the methods by calling `mgmt.guardian()`.
865+
* **Stats:** See [Docs](https://auth0.com/docs/api/management/v2#!/Stats/get_active_users). Access the methods by calling `mgmt.stats()`.
866+
* **Tenants:** See [Docs](https://auth0.com/docs/api/management/v2#!/Tenants/get_settings). Access the methods by calling `mgmt.tenants()`.
855867
* **Tickets:** See [Docs](https://auth0.com/docs/api/management/v2#!/Tickets/post_email_verification). Access the methods by calling `mgmt.tickets()`.
856-

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1818
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1919
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2020
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21-
SOFTWARE.
21+
SOFTWARE.

0 commit comments

Comments
 (0)