diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 2337c46..13b18dd 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -12,6 +12,10 @@ on:
- development
tags:
- 'v[0-9]+.[0-9]+.[0-9]+*'
+ paths-ignore:
+ - '**/*.md' # Ignore markdown files
+ - '**/LICENSE'
+ - 'scripts/**'
pull_request:
branches:
- main
@@ -23,6 +27,7 @@ on:
jobs:
build:
+ if: "!startsWith(github.event.head_commit.message, 'style:') && !startsWith(github.event.head_commit.message, 'docs:')" #do not run workflow on style or documentation changes
name: Build
runs-on: ubuntu-latest
@@ -38,7 +43,7 @@ jobs:
architecture: x64
- name: Cache Maven dependencies
- uses: actions/cache@v2
+ uses: actions/cache@v4
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}-${{ hashFiles('**/src/**') }}
@@ -57,12 +62,13 @@ jobs:
- name: Save Maven build artifacts
if: success()
- uses: actions/upload-artifact@v3
+ uses: actions/upload-artifact@v4
with:
name: maven-artifacts
path: target/
test:
+ if: "!startsWith(github.event.head_commit.message, 'style:') && !startsWith(github.event.head_commit.message, 'docs:')" #do not run workflow on style or documentation changes
name: Test
runs-on: ubuntu-latest
needs: build # Ensure build job runs before this one
@@ -77,7 +83,7 @@ jobs:
uses: actions/checkout@v4
- name: Download build artifacts
- uses: actions/download-artifact@v3
+ uses: actions/download-artifact@v4
with:
name: maven-artifacts
@@ -89,7 +95,7 @@ jobs:
architecture: x64
- name: Cache Maven dependencies for tests
- uses: actions/cache@v2
+ uses: actions/cache@v4
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ matrix.java-version }}-${{ hashFiles('**/pom.xml') }}-${{ hashFiles('**/src/**') }}
@@ -98,9 +104,10 @@ jobs:
- name: Run test suite
env:
- CORBADO_API_SECRET: ${{ secrets.CORBADO_API_SECRET }}
- CORBADO_PROJECT_ID: ${{ secrets.CORBADO_PROJECT_ID }}
- CORBADO_BACKEND_API: ${{ vars.CORBADO_BACKEND_API }}
+ CORBADO_PROJECT_ID: ${{ secrets.CORBADO_PROJECT_ID }}
+ CORBADO_API_SECRET: ${{ secrets.CORBADO_API_SECRET }}
+ CORBADO_FRONTEND_API: ${{ vars.CORBADO_FRONTEND_API }}
+ CORBADO_BACKEND_API: ${{ vars.CORBADO_BACKEND_API }}
run: mvn --batch-mode --update-snapshots verify -DskipInstall
deploy:
@@ -114,7 +121,7 @@ jobs:
uses: actions/checkout@v4
- name: Download build artifacts
- uses: actions/download-artifact@v3
+ uses: actions/download-artifact@v4
with:
name: maven-artifacts
@@ -128,7 +135,7 @@ jobs:
server-id: central
- name: Cache Maven dependencies
- uses: actions/cache@v2
+ uses: actions/cache@v4
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}-${{ hashFiles('**/src/**') }}
diff --git a/README.md b/README.md
index 05e7bc5..c2f27b7 100644
--- a/README.md
+++ b/README.md
@@ -27,7 +27,7 @@ You can find the latest SDK version at [central repository](https://repo1.maven.
Add this dependency to your project's build file:
```groovy
-implementation "com.corbado:corbado-java:1.0.4"
+implementation "com.corbado:corbado-java:2.0.0b"
```
#### Maven users
@@ -38,7 +38,7 @@ Add this dependency to your project's POM:
com.corbado
corbado-java
- 1.0.4
+ 2.0.0b
```
diff --git a/VERSION b/VERSION
index a6a3a43..a8949c6 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-1.0.4
\ No newline at end of file
+2.0.0b
\ No newline at end of file
diff --git a/pom.xml b/pom.xml
index 07eebb5..1d0ffec 100644
--- a/pom.xml
+++ b/pom.xml
@@ -3,7 +3,7 @@
com.corbado
corbado-java
jar
- 1.0.4
+ 2.0.0b
Corbado Java
Corbado Java SDK
https://github.com/corbado/corbado-java
diff --git a/src/main/java/com/corbado/entities/SessionValidationResult.java b/src/main/java/com/corbado/entities/SessionValidationResult.java
deleted file mode 100644
index 52e8731..0000000
--- a/src/main/java/com/corbado/entities/SessionValidationResult.java
+++ /dev/null
@@ -1,29 +0,0 @@
-package com.corbado.entities;
-
-import lombok.AllArgsConstructor;
-import lombok.Builder;
-import lombok.Getter;
-import lombok.NoArgsConstructor;
-import lombok.Setter;
-
-/** Result class for SessionService validation. */
-@Getter
-@Setter
-@NoArgsConstructor
-@AllArgsConstructor
-
-/**
- * The Class SessionValidationResultBuilder.
- */
-@Builder
-public class SessionValidationResult {
-
- /** The user ID. */
- private String userID;
-
- /** The full name. */
- private String fullName;
-
- /** The error. */
- private Exception error;
-}
diff --git a/src/main/java/com/corbado/enums/exception/ValidationErrorType.java b/src/main/java/com/corbado/enums/exception/ValidationErrorType.java
new file mode 100644
index 0000000..f66ccb6
--- /dev/null
+++ b/src/main/java/com/corbado/enums/exception/ValidationErrorType.java
@@ -0,0 +1,65 @@
+package com.corbado.enums.exception;
+
+import com.corbado.exceptions.TokenValidationException;
+
+/**
+ * Enumeration representing different types of validation errors that can occur during token
+ * validation.
+ *
+ *
This enum is used by the {@link TokenValidationException} to categorize and describe specific
+ * validation failures that occur when validating JWT tokens. Each error type has a human-readable
+ * description that explains the nature of the validation failure.
+ *
+ *
The validation errors cover various aspects of token validation including:
+ *
+ *
+ * - Token format and structure
+ *
- Token expiration and validity timing
+ *
- Token signature verification
+ *
- Issuer validation
+ *
- Public key validation
+ *
+ *
+ * @see com.corbado.exceptions.TokenValidationException
+ */
+public enum ValidationErrorType {
+
+ /** Indicates that the token is malformed or invalid in some way. */
+ CODE_INVALID_TOKEN("Invalid token"),
+ /** Indicates that the session token is empty or null. */
+ CODE_EMPTY_SESSION_TOKEN("Session token is empty"),
+ /** Indicates that the token's issuer claim is missing or empty. */
+ CODE_EMPTY_ISSUER("Issuer is empty"),
+ /** Indicates that the token's "not before" (nbf) claim indicates the token is not yet valid. */
+ CODE_JWT_BEFORE("Token is not valid yet"),
+ /** Indicates that the token has expired according to its "expiration" (exp) claim. */
+ CODE_JWT_EXPIRED("Token is expired"),
+ /** Indicates that the public key used for signature verification is invalid. */
+ CODE_INVALID_PUBLIC_KEY("Public key is invalid"),
+ /** Indicates that the token's signature verification failed. */
+ CODE_JWT_INVALID_SIGNATURE("Token signature is invalid"),
+ /** Indicates that the token's issuer doesn't match the expected issuer. */
+ CODE_ISSUER_MISSMATCH("Token issuer does not match");
+
+ /** The human-readable description of the validation error. */
+ private final String description;
+
+ /**
+ * Constructs a new validation error type with the specified description.
+ *
+ * @param description a human-readable description of the validation error
+ */
+ ValidationErrorType(final String description) {
+ this.description = description;
+ }
+
+ /**
+ * Returns the human-readable description of the validation error.
+ *
+ * @return the description of the validation error
+ */
+ @Override
+ public String toString() {
+ return this.description;
+ }
+}
diff --git a/src/main/java/com/corbado/exceptions/CorbadoServerException.java b/src/main/java/com/corbado/exceptions/CorbadoServerException.java
index 734e352..048fea3 100644
--- a/src/main/java/com/corbado/exceptions/CorbadoServerException.java
+++ b/src/main/java/com/corbado/exceptions/CorbadoServerException.java
@@ -1,12 +1,10 @@
package com.corbado.exceptions;
+import com.corbado.generated.invoker.ApiException;
+import com.google.gson.Gson;
import java.util.Collections;
import java.util.List;
import java.util.Optional;
-
-import com.corbado.generated.invoker.ApiException;
-import com.google.gson.Gson;
-
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.Getter;
diff --git a/src/main/java/com/corbado/exceptions/TokenValidationException.java b/src/main/java/com/corbado/exceptions/TokenValidationException.java
new file mode 100644
index 0000000..14130af
--- /dev/null
+++ b/src/main/java/com/corbado/exceptions/TokenValidationException.java
@@ -0,0 +1,67 @@
+package com.corbado.exceptions;
+
+import com.corbado.enums.exception.ValidationErrorType;
+import lombok.Getter;
+
+/**
+ * TokenValidationException is a custom exception used to indicate issues during token validation.
+ * This exception is typically thrown when the token's issuer, format, or other key attributes do
+ * not meet the expected validation criteria.
+ *
+ * This exception wraps a specific {@link ValidationErrorType} enum value to categorize the type
+ * of validation error encountered, and it provides a descriptive message detailing the reason for
+ * the exception. Additionally, it can wrap an underlying exception that caused the validation
+ * failure, allowing for more detailed error tracing.
+ *
+ *
Typical usage includes handling invalid token attributes, such as missing or mismatched
+ * issuers, empty tokens, or other validation failures.
+ *
+ *
Example usage:
+ *
+ *
{@code
+ * try {
+ * validateToken(token);
+ * } catch (SomeOtherException e) {
+ * throw new TokenValidationException(ValidationErrorType.ISSUER_MISMATCH,
+ * "Issuer mismatch (configured issuer: 'expected.com', JWT issuer: 'actual.com')", e);
+ * }
+ * }
+ *
+ * @see ValidationErrorType
+ */
+public class TokenValidationException extends RuntimeException {
+
+ /** The Constant serialVersionUID. */
+ @Getter private static final long serialVersionUID = -2978676337061777870L;
+
+ /** The error type. */
+ @Getter private final ValidationErrorType errorType;
+
+ /**
+ * Constructs a new TokenValidationException with a specified error type, a detailed message, and
+ * an optional original exception that caused this validation failure.
+ *
+ * @param errorType the type of validation error encountered, represented by {@link
+ * ValidationErrorType}
+ * @param message a descriptive message providing additional context for the validation error
+ * @param cause the original exception that caused this validation failure, if any
+ */
+ public TokenValidationException(
+ final ValidationErrorType errorType, final String message, final Throwable cause) {
+ super(message, cause);
+ this.errorType = errorType;
+ }
+
+ /**
+ * Constructs a new TokenValidationException with a specified error type and detailed message,
+ * without an underlying cause.
+ *
+ * @param errorType the type of validation error encountered, represented by {@link
+ * ValidationErrorType}
+ * @param message a descriptive message providing additional context for the validation error
+ */
+ public TokenValidationException(final ValidationErrorType errorType, final String message) {
+ super(message);
+ this.errorType = errorType;
+ }
+}
diff --git a/src/main/java/com/corbado/generated/api/AuthEventsApi.java b/src/main/java/com/corbado/generated/api/AuthEventsApi.java
index 4e72970..b3f6759 100644
--- a/src/main/java/com/corbado/generated/api/AuthEventsApi.java
+++ b/src/main/java/com/corbado/generated/api/AuthEventsApi.java
@@ -82,7 +82,8 @@ public void setCustomBaseUrl(String customBaseUrl) {
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
-
+
+ Response Details
| Status Code | Description | Response Headers |
| 200 | Auth event has been created | - |
| 0 | Error | - |
@@ -158,7 +159,8 @@ private okhttp3.Call authEventCreateValidateBeforeCall(String userID, AuthEventC
* @return AuthEvent
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
-
+
+ Response Details
| Status Code | Description | Response Headers |
| 200 | Auth event has been created | - |
| 0 | Error | - |
@@ -177,7 +179,8 @@ public AuthEvent authEventCreate(String userID, AuthEventCreateReq authEventCrea
* @return ApiResponse<AuthEvent>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
-
+
+ Response Details
| Status Code | Description | Response Headers |
| 200 | Auth event has been created | - |
| 0 | Error | - |
@@ -198,7 +201,8 @@ public ApiResponse authEventCreateWithHttpInfo(String userID, AuthEve
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
* @http.response.details
-
+
+ Response Details
| Status Code | Description | Response Headers |
| 200 | Auth event has been created | - |
| 0 | Error | - |
diff --git a/src/main/java/com/corbado/generated/api/ChallengesApi.java b/src/main/java/com/corbado/generated/api/ChallengesApi.java
index 0ce2724..5892e02 100644
--- a/src/main/java/com/corbado/generated/api/ChallengesApi.java
+++ b/src/main/java/com/corbado/generated/api/ChallengesApi.java
@@ -83,7 +83,8 @@ public void setCustomBaseUrl(String customBaseUrl) {
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
-
+
+ Response Details
| Status Code | Description | Response Headers |
| 200 | Challenge has been created | - |
| 0 | Error | - |
@@ -159,7 +160,8 @@ private okhttp3.Call challengeCreateValidateBeforeCall(String userID, ChallengeC
* @return Challenge
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
-
+
+ Response Details
| Status Code | Description | Response Headers |
| 200 | Challenge has been created | - |
| 0 | Error | - |
@@ -178,7 +180,8 @@ public Challenge challengeCreate(String userID, ChallengeCreateReq challengeCrea
* @return ApiResponse<Challenge>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
-
+
+ Response Details
| Status Code | Description | Response Headers |
| 200 | Challenge has been created | - |
| 0 | Error | - |
@@ -199,7 +202,8 @@ public ApiResponse challengeCreateWithHttpInfo(String userID, Challen
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
* @http.response.details
-
+
+ Response Details
| Status Code | Description | Response Headers |
| 200 | Challenge has been created | - |
| 0 | Error | - |
@@ -221,7 +225,8 @@ public okhttp3.Call challengeCreateAsync(String userID, ChallengeCreateReq chall
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
-
+
+ Response Details
| Status Code | Description | Response Headers |
| 200 | Challenge has been updated | - |
| 0 | Error | - |
@@ -304,7 +309,8 @@ private okhttp3.Call challengeUpdateValidateBeforeCall(String userID, String cha
* @return Challenge
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
-
+
+ Response Details
| Status Code | Description | Response Headers |
| 200 | Challenge has been updated | - |
| 0 | Error | - |
@@ -324,7 +330,8 @@ public Challenge challengeUpdate(String userID, String challengeID, ChallengeUpd
* @return ApiResponse<Challenge>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
-
+
+ Response Details
| Status Code | Description | Response Headers |
| 200 | Challenge has been updated | - |
| 0 | Error | - |
@@ -346,7 +353,8 @@ public ApiResponse challengeUpdateWithHttpInfo(String userID, String
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
* @http.response.details
-
+
+ Response Details
| Status Code | Description | Response Headers |
| 200 | Challenge has been updated | - |
| 0 | Error | - |
diff --git a/src/main/java/com/corbado/generated/api/ConnectTokensApi.java b/src/main/java/com/corbado/generated/api/ConnectTokensApi.java
index 167f137..33c59b4 100644
--- a/src/main/java/com/corbado/generated/api/ConnectTokensApi.java
+++ b/src/main/java/com/corbado/generated/api/ConnectTokensApi.java
@@ -84,7 +84,8 @@ public void setCustomBaseUrl(String customBaseUrl) {
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
-
+
+ Response Details
| Status Code | Description | Response Headers |
| 200 | Connect token has been created | - |
| 0 | Error | - |
@@ -153,7 +154,8 @@ private okhttp3.Call connectTokenCreateValidateBeforeCall(ConnectTokenCreateReq
* @return ConnectToken
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
-
+
+ Response Details
| Status Code | Description | Response Headers |
| 200 | Connect token has been created | - |
| 0 | Error | - |
@@ -171,7 +173,8 @@ public ConnectToken connectTokenCreate(ConnectTokenCreateReq connectTokenCreateR
* @return ApiResponse<ConnectToken>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
-
+
+ Response Details
| Status Code | Description | Response Headers |
| 200 | Connect token has been created | - |
| 0 | Error | - |
@@ -191,7 +194,8 @@ public ApiResponse connectTokenCreateWithHttpInfo(ConnectTokenCrea
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
* @http.response.details
-
+
+ Response Details
| Status Code | Description | Response Headers |
| 200 | Connect token has been created | - |
| 0 | Error | - |
@@ -211,7 +215,8 @@ public okhttp3.Call connectTokenCreateAsync(ConnectTokenCreateReq connectTokenCr
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
-
+
+ Response Details
| Status Code | Description | Response Headers |
| 200 | Operation succeeded | - |
| 0 | Error | - |
@@ -280,7 +285,8 @@ private okhttp3.Call connectTokenDeleteValidateBeforeCall(String connectTokenID,
* @return GenericRsp
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
-
+
+ Response Details
| Status Code | Description | Response Headers |
| 200 | Operation succeeded | - |
| 0 | Error | - |
@@ -298,7 +304,8 @@ public GenericRsp connectTokenDelete(String connectTokenID) throws ApiException
* @return ApiResponse<GenericRsp>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
-
+
+ Response Details
| Status Code | Description | Response Headers |
| 200 | Operation succeeded | - |
| 0 | Error | - |
@@ -318,7 +325,8 @@ public ApiResponse connectTokenDeleteWithHttpInfo(String connectToke
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
* @http.response.details
-
+
+ Response Details
| Status Code | Description | Response Headers |
| 200 | Operation succeeded | - |
| 0 | Error | - |
@@ -341,7 +349,8 @@ public okhttp3.Call connectTokenDeleteAsync(String connectTokenID, final ApiCall
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
-
+
+ Response Details
| Status Code | Description | Response Headers |
| 200 | List of all matching append tokens | - |
| 0 | Error | - |
@@ -423,7 +432,8 @@ private okhttp3.Call connectTokenListValidateBeforeCall(String sort, List
+
+ Response Details
| Status Code | Description | Response Headers |
| 200 | List of all matching append tokens | - |
| 0 | Error | - |
@@ -444,7 +454,8 @@ public ConnectTokenList connectTokenList(String sort, List filter, Integ
* @return ApiResponse<ConnectTokenList>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
-
+
+ Response Details
| Status Code | Description | Response Headers |
| 200 | List of all matching append tokens | - |
| 0 | Error | - |
@@ -467,7 +478,8 @@ public ApiResponse connectTokenListWithHttpInfo(String sort, L
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
* @http.response.details
-
+
+ Response Details
| Status Code | Description | Response Headers |
| 200 | List of all matching append tokens | - |
| 0 | Error | - |
@@ -488,7 +500,8 @@ public okhttp3.Call connectTokenListAsync(String sort, List filter, Inte
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
-
+
+ Response Details
| Status Code | Description | Response Headers |
| 200 | Operation succeeded | - |
| 0 | Error | - |
@@ -564,7 +577,8 @@ private okhttp3.Call connectTokenUpdateValidateBeforeCall(String connectTokenID,
* @return GenericRsp
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
-
+
+ Response Details
| Status Code | Description | Response Headers |
| 200 | Operation succeeded | - |
| 0 | Error | - |
@@ -583,7 +597,8 @@ public GenericRsp connectTokenUpdate(String connectTokenID, ConnectTokenUpdateRe
* @return ApiResponse<GenericRsp>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
-
+
+ Response Details
| Status Code | Description | Response Headers |
| 200 | Operation succeeded | - |
| 0 | Error | - |
@@ -604,7 +619,8 @@ public ApiResponse connectTokenUpdateWithHttpInfo(String connectToke
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
* @http.response.details
-
+
+ Response Details
| Status Code | Description | Response Headers |
| 200 | Operation succeeded | - |
| 0 | Error | - |
diff --git a/src/main/java/com/corbado/generated/api/IdentifiersApi.java b/src/main/java/com/corbado/generated/api/IdentifiersApi.java
index 4383647..ed886ce 100644
--- a/src/main/java/com/corbado/generated/api/IdentifiersApi.java
+++ b/src/main/java/com/corbado/generated/api/IdentifiersApi.java
@@ -85,7 +85,8 @@ public void setCustomBaseUrl(String customBaseUrl) {
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
-
+
+ Response Details
| Status Code | Description | Response Headers |
| 200 | Identifier has been created | - |
| 0 | Error | - |
@@ -161,7 +162,8 @@ private okhttp3.Call identifierCreateValidateBeforeCall(String userID, Identifie
* @return Identifier
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
-
+
+ Response Details
| Status Code | Description | Response Headers |
| 200 | Identifier has been created | - |
| 0 | Error | - |
@@ -180,7 +182,8 @@ public Identifier identifierCreate(String userID, IdentifierCreateReq identifier
* @return ApiResponse<Identifier>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
-
+
+ Response Details
| Status Code | Description | Response Headers |
| 200 | Identifier has been created | - |
| 0 | Error | - |
@@ -201,7 +204,8 @@ public ApiResponse identifierCreateWithHttpInfo(String userID, Ident
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
* @http.response.details
-
+
+ Response Details
| Status Code | Description | Response Headers |
| 200 | Identifier has been created | - |
| 0 | Error | - |
@@ -222,7 +226,8 @@ public okhttp3.Call identifierCreateAsync(String userID, IdentifierCreateReq ide
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
-
+
+ Response Details
| Status Code | Description | Response Headers |
| 200 | Operation succeeded | - |
| 0 | Error | - |
@@ -298,7 +303,8 @@ private okhttp3.Call identifierDeleteValidateBeforeCall(String userID, String id
* @return GenericRsp
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
-
+
+ Response Details
| Status Code | Description | Response Headers |
| 200 | Operation succeeded | - |
| 0 | Error | - |
@@ -317,7 +323,8 @@ public GenericRsp identifierDelete(String userID, String identifierID) throws Ap
* @return ApiResponse<GenericRsp>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
-
+
+ Response Details
| Status Code | Description | Response Headers |
| 200 | Operation succeeded | - |
| 0 | Error | - |
@@ -338,7 +345,8 @@ public ApiResponse identifierDeleteWithHttpInfo(String userID, Strin
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
* @http.response.details
-
+
+ Response Details
| Status Code | Description | Response Headers |
| 200 | Operation succeeded | - |
| 0 | Error | - |
@@ -361,7 +369,8 @@ public okhttp3.Call identifierDeleteAsync(String userID, String identifierID, fi
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
-
+
+ Response Details
| Status Code | Description | Response Headers |
| 200 | List of all matching identifiers | - |
| 0 | Error | - |
@@ -443,7 +452,8 @@ private okhttp3.Call identifierListValidateBeforeCall(String sort, List
* @return IdentifierList
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
-
+
+ Response Details
| Status Code | Description | Response Headers |
| 200 | List of all matching identifiers | - |
| 0 | Error | - |
@@ -464,7 +474,8 @@ public IdentifierList identifierList(String sort, List filter, Integer p
* @return ApiResponse<IdentifierList>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
-
+
+ Response Details
| Status Code | Description | Response Headers |
| 200 | List of all matching identifiers | - |
| 0 | Error | - |
@@ -487,7 +498,8 @@ public ApiResponse identifierListWithHttpInfo(String sort, List<
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
* @http.response.details
-
+
+ Response Details
| Status Code | Description | Response Headers |
| 200 | List of all matching identifiers | - |
| 0 | Error | - |
@@ -509,7 +521,8 @@ public okhttp3.Call identifierListAsync(String sort, List filter, Intege
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
-
+
+ Response Details
| Status Code | Description | Response Headers |
| 200 | Identifier has been updated | - |
| 0 | Error | - |
@@ -592,7 +605,8 @@ private okhttp3.Call identifierUpdateValidateBeforeCall(String userID, String id
* @return Identifier
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
-
+
+ Response Details
| Status Code | Description | Response Headers |
| 200 | Identifier has been updated | - |
| 0 | Error | - |
@@ -612,7 +626,8 @@ public Identifier identifierUpdate(String userID, String identifierID, Identifie
* @return ApiResponse<Identifier>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
-
+
+ Response Details
| Status Code | Description | Response Headers |
| 200 | Identifier has been updated | - |
| 0 | Error | - |
@@ -634,7 +649,8 @@ public ApiResponse identifierUpdateWithHttpInfo(String userID, Strin
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
* @http.response.details
-
+
+ Response Details
| Status Code | Description | Response Headers |
| 200 | Identifier has been updated | - |
| 0 | Error | - |
diff --git a/src/main/java/com/corbado/generated/api/PasskeyChallengesApi.java b/src/main/java/com/corbado/generated/api/PasskeyChallengesApi.java
index 436139a..4141d15 100644
--- a/src/main/java/com/corbado/generated/api/PasskeyChallengesApi.java
+++ b/src/main/java/com/corbado/generated/api/PasskeyChallengesApi.java
@@ -86,7 +86,8 @@ public void setCustomBaseUrl(String customBaseUrl) {
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
-
+
+ Response Details
| Status Code | Description | Response Headers |
| 200 | List of all matching passkey challenges | - |
| 0 | Error | - |
@@ -175,7 +176,8 @@ private okhttp3.Call passkeyChallengeListValidateBeforeCall(String userID, Strin
* @return PasskeyChallengeList
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
-
+
+ Response Details
| Status Code | Description | Response Headers |
| 200 | List of all matching passkey challenges | - |
| 0 | Error | - |
@@ -197,7 +199,8 @@ public PasskeyChallengeList passkeyChallengeList(String userID, String sort, Lis
* @return ApiResponse<PasskeyChallengeList>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
-
+
+ Response Details
| Status Code | Description | Response Headers |
| 200 | List of all matching passkey challenges | - |
| 0 | Error | - |
@@ -221,7 +224,8 @@ public ApiResponse passkeyChallengeListWithHttpInfo(String
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
* @http.response.details
-
+
+ Response Details
| Status Code | Description | Response Headers |
| 200 | List of all matching passkey challenges | - |
| 0 | Error | - |
@@ -243,7 +247,8 @@ public okhttp3.Call passkeyChallengeListAsync(String userID, String sort, List
+
+ Response Details
| Status Code | Description | Response Headers |
| 200 | Passkey challenge has been updated | - |
| 0 | Error | - |
@@ -326,7 +331,8 @@ private okhttp3.Call passkeyChallengeUpdateValidateBeforeCall(String userID, Str
* @return PasskeyChallenge
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
-
+
+ Response Details
| Status Code | Description | Response Headers |
| 200 | Passkey challenge has been updated | - |
| 0 | Error | - |
@@ -346,7 +352,8 @@ public PasskeyChallenge passkeyChallengeUpdate(String userID, String passkeyChal
* @return ApiResponse<PasskeyChallenge>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
-
+
+ Response Details
| Status Code | Description | Response Headers |
| 200 | Passkey challenge has been updated | - |
| 0 | Error | - |
@@ -368,7 +375,8 @@ public ApiResponse passkeyChallengeUpdateWithHttpInfo(String u
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
* @http.response.details
-
+
+ Response Details
| Status Code | Description | Response Headers |
| 200 | Passkey challenge has been updated | - |
| 0 | Error | - |
diff --git a/src/main/java/com/corbado/generated/api/PasskeyEventsApi.java b/src/main/java/com/corbado/generated/api/PasskeyEventsApi.java
index 01d209f..fd435b2 100644
--- a/src/main/java/com/corbado/generated/api/PasskeyEventsApi.java
+++ b/src/main/java/com/corbado/generated/api/PasskeyEventsApi.java
@@ -84,7 +84,8 @@ public void setCustomBaseUrl(String customBaseUrl) {
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
-
+
+ Response Details
| Status Code | Description | Response Headers |
| 200 | Passkey event has been created | - |
| 0 | Error | - |
@@ -160,7 +161,8 @@ private okhttp3.Call passkeyEventCreateValidateBeforeCall(String userID, Passkey
* @return PasskeyEvent
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
-
+
+ Response Details
| Status Code | Description | Response Headers |
| 200 | Passkey event has been created | - |
| 0 | Error | - |
@@ -179,7 +181,8 @@ public PasskeyEvent passkeyEventCreate(String userID, PasskeyEventCreateReq pass
* @return ApiResponse<PasskeyEvent>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
-
+
+ Response Details
| Status Code | Description | Response Headers |
| 200 | Passkey event has been created | - |
| 0 | Error | - |
@@ -200,7 +203,8 @@ public ApiResponse passkeyEventCreateWithHttpInfo(String userID, P
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
* @http.response.details
-
+
+ Response Details
| Status Code | Description | Response Headers |
| 200 | Passkey event has been created | - |
| 0 | Error | - |
@@ -221,7 +225,8 @@ public okhttp3.Call passkeyEventCreateAsync(String userID, PasskeyEventCreateReq
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
-
+
+ Response Details
| Status Code | Description | Response Headers |
| 200 | Operation succeeded | - |
| 0 | Error | - |
@@ -297,7 +302,8 @@ private okhttp3.Call passkeyEventDeleteValidateBeforeCall(String userID, String
* @return GenericRsp
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
-
+
+ Response Details
| Status Code | Description | Response Headers |
| 200 | Operation succeeded | - |
| 0 | Error | - |
@@ -316,7 +322,8 @@ public GenericRsp passkeyEventDelete(String userID, String passkeyEventID) throw
* @return ApiResponse<GenericRsp>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
-
+
+ Response Details
| Status Code | Description | Response Headers |
| 200 | Operation succeeded | - |
| 0 | Error | - |
@@ -337,7 +344,8 @@ public ApiResponse passkeyEventDeleteWithHttpInfo(String userID, Str
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
* @http.response.details
-
+
+ Response Details
| Status Code | Description | Response Headers |
| 200 | Operation succeeded | - |
| 0 | Error | - |
@@ -361,7 +369,8 @@ public okhttp3.Call passkeyEventDeleteAsync(String userID, String passkeyEventID
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
-
+
+ Response Details
| Status Code | Description | Response Headers |
| 200 | List of all matching passkey events | - |
| 0 | Error | - |
@@ -450,7 +459,8 @@ private okhttp3.Call passkeyEventListValidateBeforeCall(String userID, String so
* @return PasskeyEventList
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
-
+
+ Response Details
| Status Code | Description | Response Headers |
| 200 | List of all matching passkey events | - |
| 0 | Error | - |
@@ -472,7 +482,8 @@ public PasskeyEventList passkeyEventList(String userID, String sort, List
+
+ Response Details
| Status Code | Description | Response Headers |
| 200 | List of all matching passkey events | - |
| 0 | Error | - |
@@ -496,7 +507,8 @@ public ApiResponse passkeyEventListWithHttpInfo(String userID,
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
* @http.response.details
-
+
+ Response Details
| Status Code | Description | Response Headers |
| 200 | List of all matching passkey events | - |
| 0 | Error | - |
diff --git a/src/main/java/com/corbado/generated/api/PasskeysApi.java b/src/main/java/com/corbado/generated/api/PasskeysApi.java
index c251b6c..e46752c 100644
--- a/src/main/java/com/corbado/generated/api/PasskeysApi.java
+++ b/src/main/java/com/corbado/generated/api/PasskeysApi.java
@@ -40,6 +40,8 @@
import com.corbado.generated.model.PasskeyMediationFinishRsp;
import com.corbado.generated.model.PasskeyMediationStartReq;
import com.corbado.generated.model.PasskeyMediationStartRsp;
+import com.corbado.generated.model.PasskeyPostLoginReq;
+import com.corbado.generated.model.PasskeyPostLoginRsp;
import java.lang.reflect.Type;
import java.util.ArrayList;
@@ -91,7 +93,8 @@ public void setCustomBaseUrl(String customBaseUrl) {
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
-
+
+ Response Details
| Status Code | Description | Response Headers |
| 200 | Passkey append succeeded | - |
| 0 | Error | - |
@@ -160,7 +163,8 @@ private okhttp3.Call passkeyAppendFinishValidateBeforeCall(PasskeyAppendFinishRe
* @return PasskeyAppendFinishRsp
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
-
+
+ Response Details
| Status Code | Description | Response Headers |
| 200 | Passkey append succeeded | - |
| 0 | Error | - |
@@ -178,7 +182,8 @@ public PasskeyAppendFinishRsp passkeyAppendFinish(PasskeyAppendFinishReq passkey
* @return ApiResponse<PasskeyAppendFinishRsp>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
-
+
+ Response Details
| Status Code | Description | Response Headers |
| 200 | Passkey append succeeded | - |
| 0 | Error | - |
@@ -198,7 +203,8 @@ public ApiResponse passkeyAppendFinishWithHttpInfo(Passk
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
* @http.response.details
-
+
+ Response Details
| Status Code | Description | Response Headers |
| 200 | Passkey append succeeded | - |
| 0 | Error | - |
@@ -218,7 +224,8 @@ public okhttp3.Call passkeyAppendFinishAsync(PasskeyAppendFinishReq passkeyAppen
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
-
+
+ Response Details
| Status Code | Description | Response Headers |
| 200 | Passkey append challenge has been created | - |
| 0 | Error | - |
@@ -287,7 +294,8 @@ private okhttp3.Call passkeyAppendStartValidateBeforeCall(PasskeyAppendStartReq
* @return PasskeyAppendStartRsp
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
-
+
+ Response Details
| Status Code | Description | Response Headers |
| 200 | Passkey append challenge has been created | - |
| 0 | Error | - |
@@ -305,7 +313,8 @@ public PasskeyAppendStartRsp passkeyAppendStart(PasskeyAppendStartReq passkeyApp
* @return ApiResponse<PasskeyAppendStartRsp>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
-
+
+ Response Details
| Status Code | Description | Response Headers |
| 200 | Passkey append challenge has been created | - |
| 0 | Error | - |
@@ -325,7 +334,8 @@ public ApiResponse passkeyAppendStartWithHttpInfo(Passkey
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
* @http.response.details
-
+
+ Response Details
| Status Code | Description | Response Headers |
| 200 | Passkey append challenge has been created | - |
| 0 | Error | - |
@@ -345,7 +355,8 @@ public okhttp3.Call passkeyAppendStartAsync(PasskeyAppendStartReq passkeyAppendS
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
-
+
+ Response Details
| Status Code | Description | Response Headers |
| 200 | Passkey login succeeded | - |
| 0 | Error | - |
@@ -414,7 +425,8 @@ private okhttp3.Call passkeyLoginFinishValidateBeforeCall(PasskeyLoginFinishReq
* @return PasskeyLoginFinishRsp
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
-
+
+ Response Details
| Status Code | Description | Response Headers |
| 200 | Passkey login succeeded | - |
| 0 | Error | - |
@@ -432,7 +444,8 @@ public PasskeyLoginFinishRsp passkeyLoginFinish(PasskeyLoginFinishReq passkeyLog
* @return ApiResponse<PasskeyLoginFinishRsp>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
-
+
+ Response Details
| Status Code | Description | Response Headers |
| 200 | Passkey login succeeded | - |
| 0 | Error | - |
@@ -452,7 +465,8 @@ public ApiResponse passkeyLoginFinishWithHttpInfo(Passkey
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
* @http.response.details
-
+
+ Response Details
| Status Code | Description | Response Headers |
| 200 | Passkey login succeeded | - |
| 0 | Error | - |
@@ -472,7 +486,8 @@ public okhttp3.Call passkeyLoginFinishAsync(PasskeyLoginFinishReq passkeyLoginFi
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
-
+
+ Response Details
| Status Code | Description | Response Headers |
| 200 | Passkey login challenge has been created | - |
| 0 | Error | - |
@@ -541,7 +556,8 @@ private okhttp3.Call passkeyLoginStartValidateBeforeCall(PasskeyLoginStartReq pa
* @return PasskeyLoginStartRsp
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
-
+
+ Response Details
| Status Code | Description | Response Headers |
| 200 | Passkey login challenge has been created | - |
| 0 | Error | - |
@@ -559,7 +575,8 @@ public PasskeyLoginStartRsp passkeyLoginStart(PasskeyLoginStartReq passkeyLoginS
* @return ApiResponse<PasskeyLoginStartRsp>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
-
+
+ Response Details
| Status Code | Description | Response Headers |
| 200 | Passkey login challenge has been created | - |
| 0 | Error | - |
@@ -579,7 +596,8 @@ public ApiResponse passkeyLoginStartWithHttpInfo(PasskeyLo
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
* @http.response.details
-
+
+ Response Details
| Status Code | Description | Response Headers |
| 200 | Passkey login challenge has been created | - |
| 0 | Error | - |
@@ -599,7 +617,8 @@ public okhttp3.Call passkeyLoginStartAsync(PasskeyLoginStartReq passkeyLoginStar
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
-
+
+ Response Details
| Status Code | Description | Response Headers |
| 200 | Passkey mediation has been success, thus we can return a userID | - |
| 0 | Error | - |
@@ -668,7 +687,8 @@ private okhttp3.Call passkeyMediationFinishValidateBeforeCall(PasskeyMediationFi
* @return PasskeyMediationFinishRsp
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
-
+
+ Response Details
| Status Code | Description | Response Headers |
| 200 | Passkey mediation has been success, thus we can return a userID | - |
| 0 | Error | - |
@@ -686,7 +706,8 @@ public PasskeyMediationFinishRsp passkeyMediationFinish(PasskeyMediationFinishRe
* @return ApiResponse<PasskeyMediationFinishRsp>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
-
+
+ Response Details
| Status Code | Description | Response Headers |
| 200 | Passkey mediation has been success, thus we can return a userID | - |
| 0 | Error | - |
@@ -706,7 +727,8 @@ public ApiResponse passkeyMediationFinishWithHttpInfo
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
* @http.response.details
-
+
+ Response Details
| Status Code | Description | Response Headers |
| 200 | Passkey mediation has been success, thus we can return a userID | - |
| 0 | Error | - |
@@ -726,7 +748,8 @@ public okhttp3.Call passkeyMediationFinishAsync(PasskeyMediationFinishReq passke
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
-
+
+ Response Details
| Status Code | Description | Response Headers |
| 200 | Passkey login challenge has been created | - |
| 0 | Error | - |
@@ -795,7 +818,8 @@ private okhttp3.Call passkeyMediationStartValidateBeforeCall(PasskeyMediationSta
* @return PasskeyMediationStartRsp
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
-
+
+ Response Details
| Status Code | Description | Response Headers |
| 200 | Passkey login challenge has been created | - |
| 0 | Error | - |
@@ -813,7 +837,8 @@ public PasskeyMediationStartRsp passkeyMediationStart(PasskeyMediationStartReq p
* @return ApiResponse<PasskeyMediationStartRsp>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
-
+
+ Response Details
| Status Code | Description | Response Headers |
| 200 | Passkey login challenge has been created | - |
| 0 | Error | - |
@@ -833,7 +858,8 @@ public ApiResponse passkeyMediationStartWithHttpInfo(P
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
* @http.response.details
-
+
+ Response Details
| Status Code | Description | Response Headers |
| 200 | Passkey login challenge has been created | - |
| 0 | Error | - |
@@ -846,4 +872,135 @@ public okhttp3.Call passkeyMediationStartAsync(PasskeyMediationStartReq passkeyM
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
+ /**
+ * Build call for passkeyPostLogin
+ * @param passkeyPostLoginReq (required)
+ * @param _callback Callback for upload/download progress
+ * @return Call to execute
+ * @throws ApiException If fail to serialize the request body object
+ * @http.response.details
+
+ Response Details
+ | Status Code | Description | Response Headers |
+ | 200 | Post Passkey Login succeeded | - |
+ | 0 | Error | - |
+
+ */
+ public okhttp3.Call passkeyPostLoginCall(PasskeyPostLoginReq passkeyPostLoginReq, final ApiCallback _callback) throws ApiException {
+ String basePath = null;
+ // Operation Servers
+ String[] localBasePaths = new String[] { };
+
+ // Determine Base Path to Use
+ if (localCustomBaseUrl != null){
+ basePath = localCustomBaseUrl;
+ } else if ( localBasePaths.length > 0 ) {
+ basePath = localBasePaths[localHostIndex];
+ } else {
+ basePath = null;
+ }
+
+ Object localVarPostBody = passkeyPostLoginReq;
+
+ // create path and map variables
+ String localVarPath = "/passkey/postLogin";
+
+ List localVarQueryParams = new ArrayList();
+ List localVarCollectionQueryParams = new ArrayList();
+ Map localVarHeaderParams = new HashMap();
+ Map localVarCookieParams = new HashMap();
+ Map localVarFormParams = new HashMap();
+
+ final String[] localVarAccepts = {
+ "application/json"
+ };
+ final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
+ if (localVarAccept != null) {
+ localVarHeaderParams.put("Accept", localVarAccept);
+ }
+
+ final String[] localVarContentTypes = {
+ "application/json"
+ };
+ final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
+ if (localVarContentType != null) {
+ localVarHeaderParams.put("Content-Type", localVarContentType);
+ }
+
+ String[] localVarAuthNames = new String[] { "basicAuth" };
+ return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
+ }
+
+ @SuppressWarnings("rawtypes")
+ private okhttp3.Call passkeyPostLoginValidateBeforeCall(PasskeyPostLoginReq passkeyPostLoginReq, final ApiCallback _callback) throws ApiException {
+ // verify the required parameter 'passkeyPostLoginReq' is set
+ if (passkeyPostLoginReq == null) {
+ throw new ApiException("Missing the required parameter 'passkeyPostLoginReq' when calling passkeyPostLogin(Async)");
+ }
+
+ return passkeyPostLoginCall(passkeyPostLoginReq, _callback);
+
+ }
+
+ /**
+ *
+ * Explicitly runs the post-login action
+ * @param passkeyPostLoginReq (required)
+ * @return PasskeyPostLoginRsp
+ * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ * @http.response.details
+
+ Response Details
+ | Status Code | Description | Response Headers |
+ | 200 | Post Passkey Login succeeded | - |
+ | 0 | Error | - |
+
+ */
+ public PasskeyPostLoginRsp passkeyPostLogin(PasskeyPostLoginReq passkeyPostLoginReq) throws ApiException {
+ ApiResponse localVarResp = passkeyPostLoginWithHttpInfo(passkeyPostLoginReq);
+ return localVarResp.getData();
+ }
+
+ /**
+ *
+ * Explicitly runs the post-login action
+ * @param passkeyPostLoginReq (required)
+ * @return ApiResponse<PasskeyPostLoginRsp>
+ * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ * @http.response.details
+
+ Response Details
+ | Status Code | Description | Response Headers |
+ | 200 | Post Passkey Login succeeded | - |
+ | 0 | Error | - |
+
+ */
+ public ApiResponse passkeyPostLoginWithHttpInfo(PasskeyPostLoginReq passkeyPostLoginReq) throws ApiException {
+ okhttp3.Call localVarCall = passkeyPostLoginValidateBeforeCall(passkeyPostLoginReq, null);
+ Type localVarReturnType = new TypeToken(){}.getType();
+ return localVarApiClient.execute(localVarCall, localVarReturnType);
+ }
+
+ /**
+ * (asynchronously)
+ * Explicitly runs the post-login action
+ * @param passkeyPostLoginReq (required)
+ * @param _callback The callback to be executed when the API call finishes
+ * @return The request call
+ * @throws ApiException If fail to process the API call, e.g. serializing the request body object
+ * @http.response.details
+
+ Response Details
+ | Status Code | Description | Response Headers |
+ | 200 | Post Passkey Login succeeded | - |
+ | 0 | Error | - |
+
+ */
+ public okhttp3.Call passkeyPostLoginAsync(PasskeyPostLoginReq passkeyPostLoginReq, final ApiCallback _callback) throws ApiException {
+
+ okhttp3.Call localVarCall = passkeyPostLoginValidateBeforeCall(passkeyPostLoginReq, _callback);
+ Type localVarReturnType = new TypeToken(){}.getType();
+ localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
+ return localVarCall;
+ }
}
diff --git a/src/main/java/com/corbado/generated/api/PasswordManagersApi.java b/src/main/java/com/corbado/generated/api/PasswordManagersApi.java
new file mode 100644
index 0000000..732ef2f
--- /dev/null
+++ b/src/main/java/com/corbado/generated/api/PasswordManagersApi.java
@@ -0,0 +1,207 @@
+/*
+ * Corbado Backend API
+ * # Introduction This documentation gives an overview of all Corbado Backend API calls to implement passwordless authentication with Passkeys.
+ *
+ * The version of the OpenAPI document: 2.0.0
+ * Contact: support@corbado.com
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ */
+
+
+package com.corbado.generated.api;
+
+import com.corbado.generated.invoker.ApiCallback;
+import com.corbado.generated.invoker.ApiClient;
+import com.corbado.generated.invoker.ApiException;
+import com.corbado.generated.invoker.ApiResponse;
+import com.corbado.generated.invoker.Configuration;
+import com.corbado.generated.invoker.Pair;
+import com.corbado.generated.invoker.ProgressRequestBody;
+import com.corbado.generated.invoker.ProgressResponseBody;
+
+import com.google.gson.reflect.TypeToken;
+
+import java.io.IOException;
+
+
+import com.corbado.generated.model.ErrorRsp;
+import com.corbado.generated.model.PasswordManagerList;
+
+import java.lang.reflect.Type;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
+public class PasswordManagersApi {
+ private ApiClient localVarApiClient;
+ private int localHostIndex;
+ private String localCustomBaseUrl;
+
+ public PasswordManagersApi() {
+ this(Configuration.getDefaultApiClient());
+ }
+
+ public PasswordManagersApi(ApiClient apiClient) {
+ this.localVarApiClient = apiClient;
+ }
+
+ public ApiClient getApiClient() {
+ return localVarApiClient;
+ }
+
+ public void setApiClient(ApiClient apiClient) {
+ this.localVarApiClient = apiClient;
+ }
+
+ public int getHostIndex() {
+ return localHostIndex;
+ }
+
+ public void setHostIndex(int hostIndex) {
+ this.localHostIndex = hostIndex;
+ }
+
+ public String getCustomBaseUrl() {
+ return localCustomBaseUrl;
+ }
+
+ public void setCustomBaseUrl(String customBaseUrl) {
+ this.localCustomBaseUrl = customBaseUrl;
+ }
+
+ /**
+ * Build call for passwordManagerList
+ * @param userID ID of user (required)
+ * @param _callback Callback for upload/download progress
+ * @return Call to execute
+ * @throws ApiException If fail to serialize the request body object
+ * @http.response.details
+
+ Response Details
+ | Status Code | Description | Response Headers |
+ | 200 | List of all matching password managers | - |
+ | 0 | Error | - |
+
+ */
+ public okhttp3.Call passwordManagerListCall(String userID, final ApiCallback _callback) throws ApiException {
+ String basePath = null;
+ // Operation Servers
+ String[] localBasePaths = new String[] { };
+
+ // Determine Base Path to Use
+ if (localCustomBaseUrl != null){
+ basePath = localCustomBaseUrl;
+ } else if ( localBasePaths.length > 0 ) {
+ basePath = localBasePaths[localHostIndex];
+ } else {
+ basePath = null;
+ }
+
+ Object localVarPostBody = null;
+
+ // create path and map variables
+ String localVarPath = "/users/{userID}/passwordManagers"
+ .replace("{" + "userID" + "}", localVarApiClient.escapeString(userID.toString()));
+
+ List localVarQueryParams = new ArrayList();
+ List localVarCollectionQueryParams = new ArrayList();
+ Map localVarHeaderParams = new HashMap();
+ Map localVarCookieParams = new HashMap();
+ Map localVarFormParams = new HashMap();
+
+ final String[] localVarAccepts = {
+ "application/json"
+ };
+ final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
+ if (localVarAccept != null) {
+ localVarHeaderParams.put("Accept", localVarAccept);
+ }
+
+ final String[] localVarContentTypes = {
+ };
+ final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
+ if (localVarContentType != null) {
+ localVarHeaderParams.put("Content-Type", localVarContentType);
+ }
+
+ String[] localVarAuthNames = new String[] { "basicAuth" };
+ return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
+ }
+
+ @SuppressWarnings("rawtypes")
+ private okhttp3.Call passwordManagerListValidateBeforeCall(String userID, final ApiCallback _callback) throws ApiException {
+ // verify the required parameter 'userID' is set
+ if (userID == null) {
+ throw new ApiException("Missing the required parameter 'userID' when calling passwordManagerList(Async)");
+ }
+
+ return passwordManagerListCall(userID, _callback);
+
+ }
+
+ /**
+ *
+ * Returns a list of password managers
+ * @param userID ID of user (required)
+ * @return PasswordManagerList
+ * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ * @http.response.details
+
+ Response Details
+ | Status Code | Description | Response Headers |
+ | 200 | List of all matching password managers | - |
+ | 0 | Error | - |
+
+ */
+ public PasswordManagerList passwordManagerList(String userID) throws ApiException {
+ ApiResponse localVarResp = passwordManagerListWithHttpInfo(userID);
+ return localVarResp.getData();
+ }
+
+ /**
+ *
+ * Returns a list of password managers
+ * @param userID ID of user (required)
+ * @return ApiResponse<PasswordManagerList>
+ * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ * @http.response.details
+
+ Response Details
+ | Status Code | Description | Response Headers |
+ | 200 | List of all matching password managers | - |
+ | 0 | Error | - |
+
+ */
+ public ApiResponse passwordManagerListWithHttpInfo(String userID) throws ApiException {
+ okhttp3.Call localVarCall = passwordManagerListValidateBeforeCall(userID, null);
+ Type localVarReturnType = new TypeToken(){}.getType();
+ return localVarApiClient.execute(localVarCall, localVarReturnType);
+ }
+
+ /**
+ * (asynchronously)
+ * Returns a list of password managers
+ * @param userID ID of user (required)
+ * @param _callback The callback to be executed when the API call finishes
+ * @return The request call
+ * @throws ApiException If fail to process the API call, e.g. serializing the request body object
+ * @http.response.details
+
+ Response Details
+ | Status Code | Description | Response Headers |
+ | 200 | List of all matching password managers | - |
+ | 0 | Error | - |
+
+ */
+ public okhttp3.Call passwordManagerListAsync(String userID, final ApiCallback _callback) throws ApiException {
+
+ okhttp3.Call localVarCall = passwordManagerListValidateBeforeCall(userID, _callback);
+ Type localVarReturnType = new TypeToken(){}.getType();
+ localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
+ return localVarCall;
+ }
+}
diff --git a/src/main/java/com/corbado/generated/api/ProjectConfigApi.java b/src/main/java/com/corbado/generated/api/ProjectConfigApi.java
index 4e191a1..5a2324c 100644
--- a/src/main/java/com/corbado/generated/api/ProjectConfigApi.java
+++ b/src/main/java/com/corbado/generated/api/ProjectConfigApi.java
@@ -81,7 +81,8 @@ public void setCustomBaseUrl(String customBaseUrl) {
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
-
+
+ Response Details
| Status Code | Description | Response Headers |
| 200 | Operation succeeded | - |
| 0 | Error | - |
@@ -150,7 +151,8 @@ private okhttp3.Call projectConfigUpdateCNAMEValidateBeforeCall(ProjectConfigUpd
* @return GenericRsp
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
-
+
+ Response Details
| Status Code | Description | Response Headers |
| 200 | Operation succeeded | - |
| 0 | Error | - |
@@ -168,7 +170,8 @@ public GenericRsp projectConfigUpdateCNAME(ProjectConfigUpdateCnameReq projectCo
* @return ApiResponse<GenericRsp>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
-
+
+ Response Details
| Status Code | Description | Response Headers |
| 200 | Operation succeeded | - |
| 0 | Error | - |
@@ -188,7 +191,8 @@ public ApiResponse projectConfigUpdateCNAMEWithHttpInfo(ProjectConfi
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
* @http.response.details
-
+
+ Response Details
| Status Code | Description | Response Headers |
| 200 | Operation succeeded | - |
| 0 | Error | - |
diff --git a/src/main/java/com/corbado/generated/api/SessionsApi.java b/src/main/java/com/corbado/generated/api/SessionsApi.java
index c27e5f5..620ff4a 100644
--- a/src/main/java/com/corbado/generated/api/SessionsApi.java
+++ b/src/main/java/com/corbado/generated/api/SessionsApi.java
@@ -28,11 +28,8 @@
import com.corbado.generated.model.ErrorRsp;
-import com.corbado.generated.model.LongSession;
-import com.corbado.generated.model.LongSessionCreateReq;
-import com.corbado.generated.model.LongSessionUpdateReq;
-import com.corbado.generated.model.ShortSession;
-import com.corbado.generated.model.ShortSessionCreateReq;
+import com.corbado.generated.model.GenericRsp;
+import com.corbado.generated.model.SessionList;
import java.lang.reflect.Type;
import java.util.ArrayList;
@@ -78,156 +75,23 @@ public void setCustomBaseUrl(String customBaseUrl) {
}
/**
- * Build call for longSessionCreate
- * @param userID ID of user (required)
- * @param longSessionCreateReq (required)
+ * Build call for sessionList
+ * @param sort Field sorting (optional)
+ * @param filter Field filtering (optional)
+ * @param page Page number (optional, default to 1)
+ * @param pageSize Number of items per page (optional, default to 10)
* @param _callback Callback for upload/download progress
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
-
+
+ Response Details
| Status Code | Description | Response Headers |
- | 200 | Long session has been created | - |
+ | 200 | List of all matching sessions | - |
| 0 | Error | - |
*/
- public okhttp3.Call longSessionCreateCall(String userID, LongSessionCreateReq longSessionCreateReq, final ApiCallback _callback) throws ApiException {
- String basePath = null;
- // Operation Servers
- String[] localBasePaths = new String[] { };
-
- // Determine Base Path to Use
- if (localCustomBaseUrl != null){
- basePath = localCustomBaseUrl;
- } else if ( localBasePaths.length > 0 ) {
- basePath = localBasePaths[localHostIndex];
- } else {
- basePath = null;
- }
-
- Object localVarPostBody = longSessionCreateReq;
-
- // create path and map variables
- String localVarPath = "/users/{userID}/longSessions"
- .replace("{" + "userID" + "}", localVarApiClient.escapeString(userID.toString()));
-
- List localVarQueryParams = new ArrayList();
- List localVarCollectionQueryParams = new ArrayList();
- Map localVarHeaderParams = new HashMap();
- Map localVarCookieParams = new HashMap();
- Map localVarFormParams = new HashMap();
-
- final String[] localVarAccepts = {
- "application/json"
- };
- final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
- if (localVarAccept != null) {
- localVarHeaderParams.put("Accept", localVarAccept);
- }
-
- final String[] localVarContentTypes = {
- "application/json"
- };
- final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
- if (localVarContentType != null) {
- localVarHeaderParams.put("Content-Type", localVarContentType);
- }
-
- String[] localVarAuthNames = new String[] { "basicAuth" };
- return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
- }
-
- @SuppressWarnings("rawtypes")
- private okhttp3.Call longSessionCreateValidateBeforeCall(String userID, LongSessionCreateReq longSessionCreateReq, final ApiCallback _callback) throws ApiException {
- // verify the required parameter 'userID' is set
- if (userID == null) {
- throw new ApiException("Missing the required parameter 'userID' when calling longSessionCreate(Async)");
- }
-
- // verify the required parameter 'longSessionCreateReq' is set
- if (longSessionCreateReq == null) {
- throw new ApiException("Missing the required parameter 'longSessionCreateReq' when calling longSessionCreate(Async)");
- }
-
- return longSessionCreateCall(userID, longSessionCreateReq, _callback);
-
- }
-
- /**
- *
- * Create a new long session
- * @param userID ID of user (required)
- * @param longSessionCreateReq (required)
- * @return LongSession
- * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
- * @http.response.details
-