Skip to content

Commit

Permalink
add a user attribute mapper (#67)
Browse files Browse the repository at this point in the history
  • Loading branch information
backuitist committed Feb 26, 2024
1 parent 174a9c1 commit 5b61195
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
19 changes: 19 additions & 0 deletions src/main/java/at/klausbetz/provider/AppleUserAttributeMapper.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
package at.klausbetz.provider;

import org.keycloak.broker.oidc.mappers.UserAttributeMapper;

public class AppleUserAttributeMapper extends UserAttributeMapper {

private static final String[] cp = new String[] { AppleIdentityProviderFactory.PROVIDER_ID };

@Override
public String[] getCompatibleProviders() {
return cp;
}


@Override
public String getId() {
return "apple-user-attribute-mapper";
}
}
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
at.klausbetz.provider.AppleUsernameTemplateMapper
at.klausbetz.provider.AppleUsernameTemplateMapper
at.klausbetz.provider.AppleUserAttributeMapper

0 comments on commit 5b61195

Please sign in to comment.