Skip to content

Commit

Permalink
extra ui fieldsfor Keycloak 22
Browse files Browse the repository at this point in the history
  • Loading branch information
cgeorgilakis-grnet committed Apr 26, 2024
1 parent 0e46cac commit 89053fc
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 20 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Although ORCID can be configured as an OpenID Connect Identity Provider, the cur
## Compatibility

Version 1.1.0 is compatible with Keycloak version 18.0.0 .
Version 1.2.0 is compatible with Keycloak version 22.0.0 .
Version 1.3.0 is compatible with Keycloak version 22.0.0 .

## Installation

Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

<groupId>org.keycloak</groupId>
<artifactId>keycloak-orcid</artifactId>
<version>1.2.0</version>
<version>1.3.0</version>

<name>${project.artifactId}</name>
<description>ORCID as Social Provider in Keycloak</description>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
import org.keycloak.broker.social.SocialIdentityProviderFactory;
import org.keycloak.models.IdentityProviderModel;
import org.keycloak.models.KeycloakSession;
import org.keycloak.provider.ProviderConfigProperty;
import org.keycloak.provider.ProviderConfigurationBuilder;

import java.util.List;

public class OrcidIdentityProviderFactory extends AbstractIdentityProviderFactory<OrcidIdentityProvider> implements SocialIdentityProviderFactory<OrcidIdentityProvider> {

Expand All @@ -28,4 +32,17 @@ public OrcidIdentityProviderConfig createConfig() {
public String getId() {
return PROVIDER_ID;
}

@Override
public List<ProviderConfigProperty> getConfigProperties() {
return ProviderConfigurationBuilder.create()
.property().name("baseUrl")
.label("Base Url")
.helpText("Base Url to ORCID Online API. Default to https://orcid.org/oauth.")
.type(ProviderConfigProperty.STRING_TYPE).add()
.property().name("userInfoUrl")
.label("User info")
.helpText("The User Info Url.Default to https://pub.orcid.org/v3.0.")
.type(ProviderConfigProperty.STRING_TYPE).add().build();
}
}

This file was deleted.

This file was deleted.

This file was deleted.

0 comments on commit 89053fc

Please sign in to comment.