-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chore(fido2): merge from jans Signed-off-by: Yuriy Movchan <[email protected]> * chore(fido2): merge from jans Signed-off-by: Yuriy Movchan <[email protected]> --------- Signed-off-by: Yuriy Movchan <[email protected]>
- Loading branch information
Showing
158 changed files
with
13,519 additions
and
2,069 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 0 additions & 13 deletions
13
model/src/main/java/org/gluu/fido2/ctap/UserVerification.java
This file was deleted.
Oops, something went wrong.
49 changes: 49 additions & 0 deletions
49
model/src/main/java/org/gluu/fido2/model/assertion/AssertionErrorResponseType.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
package org.gluu.fido2.model.assertion; | ||
|
||
import org.gluu.oxauth.model.error.IErrorType; | ||
|
||
public enum AssertionErrorResponseType implements IErrorType { | ||
|
||
/** | ||
* The request is missing a required parameter, includes an | ||
* invalid parameter value or is otherwise malformed id_session. | ||
*/ | ||
INVALID_SESSION_ID("invalid_session_id"), | ||
|
||
/** | ||
* The request is missing a required parameter, username or key_handle | ||
*/ | ||
INVALID_USERNAME_OR_KEY_HANDLE("invalid_username_or_key_handle"), | ||
|
||
/** | ||
* The request contains an unsupported authentication type | ||
*/ | ||
UNSUPPORTED_AUTHENTICATION_TYPE("unsupported_authentication_type"), | ||
|
||
/** | ||
* The request contains conflicts with Super Gluu parameters | ||
*/ | ||
CONFLICT_WITH_SUPER_GLUU("conflict_with_super_gluu"), | ||
|
||
/** | ||
* Can't find associated key(s) | ||
*/ | ||
KEYS_NOT_FOUND("keys_not_found"), | ||
; | ||
|
||
private final String paramName; | ||
|
||
AssertionErrorResponseType(String paramName) { | ||
this.paramName = paramName; | ||
} | ||
|
||
@Override | ||
public String getParameter() { | ||
return paramName; | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return paramName; | ||
} | ||
} |
84 changes: 84 additions & 0 deletions
84
model/src/main/java/org/gluu/fido2/model/attestation/AttestationErrorResponseType.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
package org.gluu.fido2.model.attestation; | ||
|
||
import org.gluu.oxauth.model.error.IErrorType; | ||
|
||
public enum AttestationErrorResponseType implements IErrorType { | ||
|
||
/** | ||
* The request contains a challenge with error. | ||
*/ | ||
INVALID_CHALLENGE("invalid_challenge"), | ||
|
||
/** | ||
* The request contains unsupported attestation format (fmt) | ||
*/ | ||
UNSUPPORTED_ATTESTATION_FORMAT("unsupported_attestation_format"), | ||
|
||
/** | ||
* The request is missing a required parameter, includes an | ||
* invalid parameter value or is otherwise malformed id_session. | ||
*/ | ||
INVALID_SESSION_ID("invalid_session_id"), | ||
|
||
/** | ||
* The request contains an unsupported register type | ||
*/ | ||
UNSUPPORTED_REGISTER_TYPE("unsupported_register_type"), | ||
|
||
/** | ||
* Auto enrollment is disabled | ||
*/ | ||
USER_AUTO_ENROLLMENT_IS_DISABLED("user_auto_enrollment_is_disabled"), | ||
|
||
/** | ||
* Certificate validation error | ||
*/ | ||
INVALID_CERTIFICATE("invalid_certificate"), | ||
|
||
/** | ||
* Packed validation error | ||
*/ | ||
PACKED_ERROR("packed_error"), | ||
|
||
/** | ||
* Tpm validation error | ||
*/ | ||
TPM_ERROR("tpm_error"), | ||
|
||
/** | ||
* Android key validation error | ||
*/ | ||
ANDROID_KEY_ERROR("android_key_error"), | ||
|
||
/** | ||
* Android safetynet validation error | ||
*/ | ||
ANDROID_SAFETYNET_ERROR("android_safetynet_error"), | ||
|
||
/** | ||
* Apple validation error | ||
*/ | ||
APPLE_ERROR("apple_error"), | ||
|
||
/** | ||
* Fido U2F validation error | ||
*/ | ||
FIDO_U2F_ERROR("fido_u2f_error"), | ||
; | ||
|
||
private final String paramName; | ||
|
||
AttestationErrorResponseType(String paramName) { | ||
this.paramName = paramName; | ||
} | ||
|
||
@Override | ||
public String getParameter() { | ||
return paramName; | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return paramName; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.