Skip to content

Commit

Permalink
server: fix auth config attribute name
Browse files Browse the repository at this point in the history
  • Loading branch information
paul-marechal committed Dec 9, 2024
1 parent 405ae7b commit bac3a3e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions server/src/main/java/org/eclipse/openvsx/OVSXConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@
@ConfigurationProperties(prefix = "ovsx")
public class OVSXConfig {

private AuthConfig authConfig = new AuthConfig();
private AuthConfig auth = new AuthConfig();

public AuthConfig getAuthConfig() {
return authConfig;
public AuthConfig getAuth() {
return auth;
}

public void setAuthConfig(AuthConfig authConfig) {
this.authConfig = authConfig;
public void setAuth(AuthConfig authConfig) {
this.auth = authConfig;
}

public static class AuthConfig {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public AuthUser createAuthUser(String providerId, OAuth2User oauth2User) {
* @return The relevant attribute mappings.
*/
private AttributeNames getAttributeNames(String provider) {
var attributeNames = config.getAuthConfig().getAttributeNames().get(provider);
var attributeNames = config.getAuth().getAttributeNames().get(provider);
if (attributeNames == null) {
return switch (provider) {
case "github" -> GITHUB_ATTRIBUTES;
Expand Down

0 comments on commit bac3a3e

Please sign in to comment.