Skip to content

Commit

Permalink
Name change: useRegistrationId
Browse files Browse the repository at this point in the history
  • Loading branch information
oharsta committed Dec 10, 2024
1 parent d16627b commit cd30446
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/main/java/tiqr/org/DefaultTiqrService.java
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ public Registration enrollData(Registration registration) throws TiqrException {
registration.setCreated(now);
registration.setUpdated(now);
registration.setId(enrollment.getRegistrationId());
registration.setUsePrimaryIdentifier(true);
registration.setUseRegistrationId(true);

Registration savedRegistration = registrationRepository.save(registration);

Expand Down Expand Up @@ -149,7 +149,7 @@ public Authentication startAuthentication(String userId, String userDisplayName,
String challenge = Challenge.generateQH10Challenge();
String authenticationUrl = String.format("%s/tiqrauth/?u=%s&s=%s&q=%s&i=%s&v=%s",
eduIdAppBaseUrl,
encode(registration.isUsePrimaryIdentifier() ? registration.getId() : userId),
encode(registration.isUseRegistrationId() ? registration.getId() : userId),
encode(sessionKey),
encode(challenge),
encode(this.service.getIdentifier()),
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/tiqr/org/model/Registration.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public class Registration implements Serializable {
private RegistrationStatus status;
private Instant created;
private Instant updated;
private boolean usePrimaryIdentifier;
private boolean useRegistrationId;

public void validateForInitialEnrollment() {
validateForPushNotification();
Expand Down

0 comments on commit cd30446

Please sign in to comment.