Skip to content
This repository was archived by the owner on Apr 15, 2026. It is now read-only.

Commit c75c838

Browse files
authored
Merge pull request #12 from corbado/11-adapt-to-new-backend-api-responses
Regenerated Backend API client
2 parents b7dd26b + 31a09b5 commit c75c838

106 files changed

Lines changed: 7356 additions & 1706 deletions

File tree

Some content is hidden

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

.github/workflows/ci.yml

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ on:
1212
- development
1313
tags:
1414
- 'v[0-9]+.[0-9]+.[0-9]+*'
15+
paths-ignore:
16+
- '**/*.md' # Ignore markdown files
17+
- '**/LICENSE'
18+
- 'scripts/**'
1519
pull_request:
1620
branches:
1721
- main
@@ -23,6 +27,7 @@ on:
2327

2428
jobs:
2529
build:
30+
if: "!startsWith(github.event.head_commit.message, 'style:') && !startsWith(github.event.head_commit.message, 'docs:')" #do not run workflow on style or documentation changes
2631
name: Build
2732
runs-on: ubuntu-latest
2833

@@ -38,7 +43,7 @@ jobs:
3843
architecture: x64
3944

4045
- name: Cache Maven dependencies
41-
uses: actions/cache@v3
46+
uses: actions/cache@v4
4247
with:
4348
path: ~/.m2/repository
4449
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}-${{ hashFiles('**/src/**') }}
@@ -63,6 +68,7 @@ jobs:
6368
path: target/
6469

6570
test:
71+
if: "!startsWith(github.event.head_commit.message, 'style:') && !startsWith(github.event.head_commit.message, 'docs:')" #do not run workflow on style or documentation changes
6672
name: Test
6773
runs-on: ubuntu-latest
6874
needs: build # Ensure build job runs before this one
@@ -89,7 +95,7 @@ jobs:
8995
architecture: x64
9096

9197
- name: Cache Maven dependencies for tests
92-
uses: actions/cache@v3
98+
uses: actions/cache@v4
9399
with:
94100
path: ~/.m2/repository
95101
key: ${{ runner.os }}-maven-${{ matrix.java-version }}-${{ hashFiles('**/pom.xml') }}-${{ hashFiles('**/src/**') }}
@@ -98,9 +104,10 @@ jobs:
98104
99105
- name: Run test suite
100106
env:
101-
CORBADO_API_SECRET: ${{ secrets.CORBADO_API_SECRET }}
102-
CORBADO_PROJECT_ID: ${{ secrets.CORBADO_PROJECT_ID }}
103-
CORBADO_BACKEND_API: ${{ vars.CORBADO_BACKEND_API }}
107+
CORBADO_PROJECT_ID: ${{ secrets.CORBADO_PROJECT_ID }}
108+
CORBADO_API_SECRET: ${{ secrets.CORBADO_API_SECRET }}
109+
CORBADO_FRONTEND_API: ${{ vars.CORBADO_FRONTEND_API }}
110+
CORBADO_BACKEND_API: ${{ vars.CORBADO_BACKEND_API }}
104111
run: mvn --batch-mode --update-snapshots verify -DskipInstall
105112

106113
deploy:
@@ -128,7 +135,7 @@ jobs:
128135
server-id: central
129136

130137
- name: Cache Maven dependencies
131-
uses: actions/cache@v3
138+
uses: actions/cache@v4
132139
with:
133140
path: ~/.m2/repository
134141
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}-${{ hashFiles('**/src/**') }}

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ You can find the latest SDK version at [central repository](https://repo1.maven.
2727
Add this dependency to your project's build file:
2828

2929
```groovy
30-
implementation "com.corbado:corbado-java:1.0.4"
30+
implementation "com.corbado:corbado-java:1.0.5"
3131
```
3232

3333
#### Maven users
@@ -38,7 +38,7 @@ Add this dependency to your project's POM:
3838
<dependency>
3939
<groupId>com.corbado</groupId>
4040
<artifactId>corbado-java</artifactId>
41-
<version>1.0.4</version>
41+
<version>1.0.5</version>
4242
</dependency>
4343
```
4444

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.0.4
1+
1.0.5

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<groupId>com.corbado</groupId>
44
<artifactId>corbado-java</artifactId>
55
<packaging>jar</packaging>
6-
<version>1.0.4</version>
6+
<version>1.0.5</version>
77
<name>Corbado Java</name>
88
<description>Corbado Java SDK</description>
99
<url>https://github.com/corbado/corbado-java</url>

src/main/java/com/corbado/generated/api/AuthEventsApi.java

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,8 @@ public void setCustomBaseUrl(String customBaseUrl) {
8282
* @return Call to execute
8383
* @throws ApiException If fail to serialize the request body object
8484
* @http.response.details
85-
<table summary="Response Details" border="1">
85+
<table border="1">
86+
<caption>Response Details</caption>
8687
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
8788
<tr><td> 200 </td><td> Auth event has been created </td><td> - </td></tr>
8889
<tr><td> 0 </td><td> Error </td><td> - </td></tr>
@@ -158,7 +159,8 @@ private okhttp3.Call authEventCreateValidateBeforeCall(String userID, AuthEventC
158159
* @return AuthEvent
159160
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
160161
* @http.response.details
161-
<table summary="Response Details" border="1">
162+
<table border="1">
163+
<caption>Response Details</caption>
162164
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
163165
<tr><td> 200 </td><td> Auth event has been created </td><td> - </td></tr>
164166
<tr><td> 0 </td><td> Error </td><td> - </td></tr>
@@ -177,7 +179,8 @@ public AuthEvent authEventCreate(String userID, AuthEventCreateReq authEventCrea
177179
* @return ApiResponse&lt;AuthEvent&gt;
178180
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
179181
* @http.response.details
180-
<table summary="Response Details" border="1">
182+
<table border="1">
183+
<caption>Response Details</caption>
181184
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
182185
<tr><td> 200 </td><td> Auth event has been created </td><td> - </td></tr>
183186
<tr><td> 0 </td><td> Error </td><td> - </td></tr>
@@ -198,7 +201,8 @@ public ApiResponse<AuthEvent> authEventCreateWithHttpInfo(String userID, AuthEve
198201
* @return The request call
199202
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
200203
* @http.response.details
201-
<table summary="Response Details" border="1">
204+
<table border="1">
205+
<caption>Response Details</caption>
202206
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
203207
<tr><td> 200 </td><td> Auth event has been created </td><td> - </td></tr>
204208
<tr><td> 0 </td><td> Error </td><td> - </td></tr>

src/main/java/com/corbado/generated/api/ChallengesApi.java

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,8 @@ public void setCustomBaseUrl(String customBaseUrl) {
8383
* @return Call to execute
8484
* @throws ApiException If fail to serialize the request body object
8585
* @http.response.details
86-
<table summary="Response Details" border="1">
86+
<table border="1">
87+
<caption>Response Details</caption>
8788
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
8889
<tr><td> 200 </td><td> Challenge has been created </td><td> - </td></tr>
8990
<tr><td> 0 </td><td> Error </td><td> - </td></tr>
@@ -159,7 +160,8 @@ private okhttp3.Call challengeCreateValidateBeforeCall(String userID, ChallengeC
159160
* @return Challenge
160161
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
161162
* @http.response.details
162-
<table summary="Response Details" border="1">
163+
<table border="1">
164+
<caption>Response Details</caption>
163165
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
164166
<tr><td> 200 </td><td> Challenge has been created </td><td> - </td></tr>
165167
<tr><td> 0 </td><td> Error </td><td> - </td></tr>
@@ -178,7 +180,8 @@ public Challenge challengeCreate(String userID, ChallengeCreateReq challengeCrea
178180
* @return ApiResponse&lt;Challenge&gt;
179181
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
180182
* @http.response.details
181-
<table summary="Response Details" border="1">
183+
<table border="1">
184+
<caption>Response Details</caption>
182185
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
183186
<tr><td> 200 </td><td> Challenge has been created </td><td> - </td></tr>
184187
<tr><td> 0 </td><td> Error </td><td> - </td></tr>
@@ -199,7 +202,8 @@ public ApiResponse<Challenge> challengeCreateWithHttpInfo(String userID, Challen
199202
* @return The request call
200203
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
201204
* @http.response.details
202-
<table summary="Response Details" border="1">
205+
<table border="1">
206+
<caption>Response Details</caption>
203207
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
204208
<tr><td> 200 </td><td> Challenge has been created </td><td> - </td></tr>
205209
<tr><td> 0 </td><td> Error </td><td> - </td></tr>
@@ -221,7 +225,8 @@ public okhttp3.Call challengeCreateAsync(String userID, ChallengeCreateReq chall
221225
* @return Call to execute
222226
* @throws ApiException If fail to serialize the request body object
223227
* @http.response.details
224-
<table summary="Response Details" border="1">
228+
<table border="1">
229+
<caption>Response Details</caption>
225230
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
226231
<tr><td> 200 </td><td> Challenge has been updated </td><td> - </td></tr>
227232
<tr><td> 0 </td><td> Error </td><td> - </td></tr>
@@ -304,7 +309,8 @@ private okhttp3.Call challengeUpdateValidateBeforeCall(String userID, String cha
304309
* @return Challenge
305310
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
306311
* @http.response.details
307-
<table summary="Response Details" border="1">
312+
<table border="1">
313+
<caption>Response Details</caption>
308314
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
309315
<tr><td> 200 </td><td> Challenge has been updated </td><td> - </td></tr>
310316
<tr><td> 0 </td><td> Error </td><td> - </td></tr>
@@ -324,7 +330,8 @@ public Challenge challengeUpdate(String userID, String challengeID, ChallengeUpd
324330
* @return ApiResponse&lt;Challenge&gt;
325331
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
326332
* @http.response.details
327-
<table summary="Response Details" border="1">
333+
<table border="1">
334+
<caption>Response Details</caption>
328335
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
329336
<tr><td> 200 </td><td> Challenge has been updated </td><td> - </td></tr>
330337
<tr><td> 0 </td><td> Error </td><td> - </td></tr>
@@ -346,7 +353,8 @@ public ApiResponse<Challenge> challengeUpdateWithHttpInfo(String userID, String
346353
* @return The request call
347354
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
348355
* @http.response.details
349-
<table summary="Response Details" border="1">
356+
<table border="1">
357+
<caption>Response Details</caption>
350358
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
351359
<tr><td> 200 </td><td> Challenge has been updated </td><td> - </td></tr>
352360
<tr><td> 0 </td><td> Error </td><td> - </td></tr>

0 commit comments

Comments
 (0)