Skip to content

Commit

Permalink
Fix username attributes for sso login
Browse files Browse the repository at this point in the history
  • Loading branch information
muralibasani committed Aug 22, 2024
1 parent 0ef3f69 commit bcd7651
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public class KwAuthenticationSuccessHandler extends SavedRequestAwareAuthenticat
@Value("${klaw.ad.username.attribute:preferred_username}")
private String preferredUsernameAttribute;

@Value("${klaw.ad.email.attribute:preferred_username}")
@Value("${klaw.ad.email.attribute:email}")
private String emailAttribute;

@Autowired HandleDbRequestsJdbc handleDbRequests;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public class ResourceClientController {
@Value("${klaw.ad.username.attribute:preferred_username}")
private String preferredUsernameAttribute;

@Value("${klaw.ad.email.attribute:preferred_username}")
@Value("${klaw.ad.email.attribute:email}")
private String emailAttribute;

private static final String authorizationRequestBaseUri = "oauth2/authorize-client";
Expand Down
2 changes: 1 addition & 1 deletion core/src/main/java/io/aiven/klaw/service/MailUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public class MailUtils {
@Value("${klaw.ad.username.attribute:preferred_username}")
private String preferredUsernameAttribute;

@Value("${klaw.ad.email.attribute:preferred_username}")
@Value("${klaw.ad.email.attribute:email}")
private String emailAttribute;

private static final String TOPIC_REQ_KEY = "klaw.mail.topicrequest.content";
Expand Down

0 comments on commit bcd7651

Please sign in to comment.