Skip to content

Commit

Permalink
v1.1.0.10 (#136)
Browse files Browse the repository at this point in the history
* Preferred MFA: field auth_type -> type  + biometric_type
  • Loading branch information
glacuesta-sa committed Nov 9, 2023
1 parent c4dc171 commit a4711f2
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 43 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
currentVersion=1.1.0.9
currentVersion=1.1.0.10
54 changes: 16 additions & 38 deletions src/main/java/org/secureauth/sarestapi/data/PreferredMFA.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,23 @@
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonIgnoreProperties(ignoreUnknown = true)
public class PreferredMFA {

@JsonProperty("factor_id")
private String factorId;

@JsonProperty("type")
private String type;

@JsonProperty("mode")
private String mode;

@JsonProperty("available_choosen_mode")
private String availableChoosenMode;

@JsonProperty("factor_id")
private String factorId;
@JsonProperty("biometric_type")
private String biometricType;

@JsonProperty("auth_type")
private String authType;
public String getFactorId() {
return factorId;
}

public void setFactorId(String factorId) {
this.factorId = factorId;
}

public String getType() {
return type;
Expand All @@ -34,36 +36,12 @@ public void setType(String type) {
this.type = type;
}

public String getMode() {
return mode;
}

public void setMode(String mode) {
this.mode = mode;
}

public String getAvailableChoosenMode() {
return availableChoosenMode;
}

public void setAvailableChoosenMode(String availableChoosenMode) {
this.availableChoosenMode = availableChoosenMode;
}

public String getFactorId() {
return factorId;
}

public void setFactorId(String factorId) {
this.factorId = factorId;
}

public String getAuthType() {
return authType;
public String getBiometricType() {
return biometricType;
}

public void setAuthType(String authType) {
this.authType = authType;
public void setBiometricType(String biometricType) {
this.biometricType = biometricType;
}

@Override
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
package org.secureauth.sarestapi.data.Requests;

import org.secureauth.sarestapi.data.PushAcceptDetails;
import org.secureauth.sarestapi.resources.Resource;

public class PushToAcceptRequestsFactory {

private static final String BIOMETRIC_TO_ACCEPT = "push_accept_biometric";

public static PushToAcceptBiometricsRequest createPushToAcceptBiometricRequest(String biometricType, String userId, String factorId, String endUserIP, String clientCompany, String clientDescription) {
PushToAcceptBiometricsRequest req = new PushToAcceptBiometricsRequest();
req.setUser_id(userId);
req.setType(BIOMETRIC_TO_ACCEPT);
req.setType(Resource.PUSH_ACCEPT_BIOMETRIC);
req.setFactor_id(factorId);
req.setBiometricType( biometricType );
PushAcceptDetails pad = new PushAcceptDetails();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public class FactorsResponse extends BaseResponse {
private ArrayList<Factors> factors = new ArrayList<Factors>();

@JsonProperty("preferred_mfa")
public PreferredMFA preferred_mfa = new PreferredMFA();
public PreferredMFA preferredMfa = new PreferredMFA();

public ArrayList<Factors> getFactors() {
return factors;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,5 +113,10 @@ public class Resource {
public static final String KBA = "kba";
public static final String CALL = "call";
public static final String HELP_DESK = "help_desk";


public static final String PUSH_ACCEPT_BIOMETRIC = "push_accept_biometric";
public static final String FINGERPRINT = "fingerprint";
public static final String FACE = "face";

}

0 comments on commit a4711f2

Please sign in to comment.