-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #21 from neondatabase/dsavelev/propagate-installat…
…ion-id Save Vercel installation ID for future use
- Loading branch information
Showing
3 changed files
with
24 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package vercel; | ||
|
||
import org.keycloak.broker.oidc.mappers.UserAttributeMapper; | ||
|
||
/** | ||
* User attribute mapper. | ||
* | ||
*/ | ||
public class VercelMPUserAttributeMapper extends UserAttributeMapper { | ||
|
||
private static final String[] cp = new String[] { VercelMPIdentityProviderFactory.PROVIDER_ID }; | ||
|
||
@Override | ||
public String[] getCompatibleProviders() { | ||
return cp; | ||
} | ||
|
||
@Override | ||
public String getId() { | ||
return "vercelmp-user-attribute-mapper"; | ||
} | ||
|
||
} |
1 change: 1 addition & 0 deletions
1
src/main/resources/META-INF/services/org.keycloak.broker.provider.IdentityProviderMapper
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
vercel.VercelMPUserAttributeMapper |