Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found
Select Git revision
  • dev3
  • main
  • renovate/mockito-monorepo
  • renovate/mysql-connector-j.version
  • v1.0.0
  • v1.0.1
  • v1.0.2
  • v1.0.3
  • v1.0.4
  • v2.0.0
  • v2.0.1
  • v2.0.10
  • v2.0.11
  • v2.0.12
  • v2.0.2
  • v2.0.3
  • v2.0.4
  • v2.0.5
  • v2.0.6
  • v2.0.7
  • v2.0.8
  • v2.0.9
  • v2.1.0
  • v2.1.1
  • v2.1.10
  • v2.1.11
  • v2.1.12
  • v2.1.13
  • v2.1.14
  • v2.1.2
  • v2.1.3
  • v2.1.4
  • v2.1.5
  • v2.1.6
  • v2.1.7
  • v2.1.8
  • v2.1.9
  • v2.2.0
  • v2.2.1
  • v2.2.2
  • v2.2.3
  • v2.2.4
  • v2.2.5
  • v2.2.6
  • v2.3.0
  • v2.3.1
  • v2.3.10
  • v2.3.11
  • v2.3.2
  • v2.3.3
  • v2.3.4
  • v2.3.5
  • v2.3.6
  • v2.3.7
  • v2.3.8
  • v2.3.9
  • v2.4.0
  • v2.4.1
  • v2.4.10
  • v2.4.11
  • v2.4.12
  • v2.4.13
  • v2.4.2
  • v2.4.3
  • v2.4.4
  • v2.4.5
  • v2.4.6
  • v2.4.7
  • v2.4.8
  • v2.4.9
  • v2.5.0
  • v2.5.1
  • v2.5.2
  • v2.5.3
74 results

Target

Select target project
  • perun/perun-proxyidp/bleeding-edge/lsaai-oidc-mock
1 result
Select Git revision
  • dev3
  • main
  • renovate/mockito-monorepo
  • renovate/mysql-connector-j.version
  • v1.0.0
  • v1.0.1
  • v1.0.2
  • v1.0.3
  • v1.0.4
  • v2.0.0
  • v2.0.1
  • v2.0.10
  • v2.0.11
  • v2.0.12
  • v2.0.2
  • v2.0.3
  • v2.0.4
  • v2.0.5
  • v2.0.6
  • v2.0.7
  • v2.0.8
  • v2.0.9
  • v2.1.0
  • v2.1.1
  • v2.1.10
  • v2.1.11
  • v2.1.12
  • v2.1.13
  • v2.1.14
  • v2.1.2
  • v2.1.3
  • v2.1.4
  • v2.1.5
  • v2.1.6
  • v2.1.7
  • v2.1.8
  • v2.1.9
  • v2.2.0
  • v2.2.1
  • v2.2.2
  • v2.2.3
  • v2.2.4
  • v2.2.5
  • v2.2.6
  • v2.3.0
  • v2.3.1
  • v2.3.10
  • v2.3.11
  • v2.3.2
  • v2.3.3
  • v2.3.4
  • v2.3.5
  • v2.3.6
  • v2.3.7
  • v2.3.8
  • v2.3.9
  • v2.4.0
  • v2.4.1
  • v2.4.10
  • v2.4.11
  • v2.4.12
  • v2.4.13
  • v2.4.2
  • v2.4.3
  • v2.4.4
  • v2.4.5
  • v2.4.6
  • v2.4.7
  • v2.4.8
  • v2.4.9
  • v2.5.0
  • v2.5.1
  • v2.5.2
  • v2.5.3
74 results
Show changes
Commits on Source (3)
## [2.4.8](https://gitlab.ics.muni.cz/perun-proxy-aai/java/lsaai-oidc-mock/compare/v2.4.7...v2.4.8) (2024-01-23)
### Bug Fixes
* 🐛 client models ([200373e](https://gitlab.ics.muni.cz/perun-proxy-aai/java/lsaai-oidc-mock/commit/200373e995e624123bd80562becc869c33671e12))
## [2.4.7](https://gitlab.ics.muni.cz/perun-proxy-aai/java/lsaai-oidc-mock/compare/v2.4.6...v2.4.7) (2024-01-23)
......
......@@ -21,7 +21,7 @@
<parent>
<groupId>cz.muni.ics</groupId>
<artifactId>perun-oidc-parent</artifactId>
<version>2.4.7</version>
<version>2.4.8</version>
<relativePath>../pom.xml</relativePath>
</parent>
......
......@@ -22,7 +22,7 @@
<parent>
<groupId>cz.muni.ics</groupId>
<artifactId>perun-oidc-parent</artifactId>
<version>2.4.7</version>
<version>2.4.8</version>
<relativePath>../pom.xml</relativePath>
</parent>
......
......@@ -21,6 +21,8 @@
package cz.muni.ics.oauth2.model;
import com.fasterxml.jackson.annotation.JsonAlias;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import cz.muni.ics.oauth2.model.enums.AuthMethod;
import lombok.AllArgsConstructor;
import lombok.Builder;
......@@ -43,42 +45,33 @@ import java.util.Set;
* @author Dominik F. Bucik &lt;bucik@ics.muni.cz&gt;
*/
@Getter
@Setter
@ToString
@EqualsAndHashCode
@NoArgsConstructor
@AllArgsConstructor
@Builder
@JsonIgnoreProperties(ignoreUnknown = true)
public class MockOidcClientDetailsEntity implements ClientDetails {
@JsonAlias("client-name")
private String clientName;
@Builder.Default
@JsonAlias("client-id")
private String clientId = null;
@Builder.Default
@JsonAlias("client-secret")
private String clientSecret = null;
@Builder.Default
@JsonAlias("redirect-uris")
private Set<String> redirectUris = new HashSet<>();
@Builder.Default
@JsonAlias("token-endpoint-auth-method")
private AuthMethod tokenEndpointAuthMethod = AuthMethod.SECRET_BASIC;
@Builder.Default
@JsonAlias("scope")
private Set<String> scope = new HashSet<>();
@Builder.Default
@JsonAlias("grant-types")
private Set<String> grantTypes = new HashSet<>();
@Builder.Default
@JsonAlias("post-logout-redirect-uris")
private Set<String> postLogoutRedirectUris = new HashSet<>();
......@@ -97,7 +90,6 @@ public class MockOidcClientDetailsEntity implements ClientDetails {
@JsonAlias("code-challenge-method")
private String codeChallengeMethod = null;
@Builder.Default
@JsonAlias("resource-ids")
private Set<String> resourceIds = new HashSet<>();
......@@ -195,9 +187,55 @@ public class MockOidcClientDetailsEntity implements ClientDetails {
return PKCEAlgorithm.getByAlgorithm(codeChallengeMethod);
}
public void setClientName(String clientName) {
if (!StringUtils.hasText(clientName)) {
throw new IllegalArgumentException();
}
this.clientName = clientName;
}
public void setClientId(String clientId) {
if (!StringUtils.hasText(clientId)) {
throw new IllegalArgumentException();
}
this.clientId = clientId;
}
public void setClientSecret(String clientSecret) {
this.clientSecret = clientSecret;
}
public void setRedirectUris(Set<String> redirectUris) {
if (redirectUris == null) {
redirectUris = new HashSet<>();
}
this.redirectUris = redirectUris;
}
public void setScope(Set<String> scope) {
if (scope == null) {
scope = new HashSet<>();
}
this.scope = scope;
}
public void setGrantTypes(Set<String> grantTypes) {
if (grantTypes == null) {
grantTypes = new HashSet<>();
}
this.grantTypes = grantTypes;
}
public void setPostLogoutRedirectUris(Set<String> postLogoutRedirectUris) {
if (postLogoutRedirectUris == null) {
postLogoutRedirectUris = new HashSet<>();
}
this.postLogoutRedirectUris = postLogoutRedirectUris;
}
public void setAccessTokenValiditySeconds(Integer accessTokenValiditySeconds) {
if (accessTokenValiditySeconds == null || accessTokenValiditySeconds < 0 ) {
return;
if (accessTokenValiditySeconds == null) {
accessTokenValiditySeconds = 3600;
}
this.accessTokenValiditySeconds = accessTokenValiditySeconds;
}
......@@ -223,4 +261,23 @@ public class MockOidcClientDetailsEntity implements ClientDetails {
this.deviceCodeValiditySeconds = deviceCodeValiditySeconds;
}
public void setCodeChallengeMethod(String codeChallengeMethod) {
if (!StringUtils.hasText(codeChallengeMethod)) {
codeChallengeMethod = PKCEAlgorithm.NONE.getAlgorithm().getName();
}
if (!PKCEAlgorithm.isSupported(codeChallengeMethod)) {
throw new IllegalArgumentException("Unsupported code challenge method: " + codeChallengeMethod);
}
PKCEAlgorithm pkce = PKCEAlgorithm.getByAlgorithmName(codeChallengeMethod);
this.codeChallengeMethod = pkce.getAlgorithm().getName();
}
public void setResourceIds(Set<String> resourceIds) {
if (resourceIds == null) {
resourceIds = new HashSet<>();
}
this.resourceIds = resourceIds;
}
}
......@@ -16,7 +16,6 @@ import java.util.Set;
@ToString
@EqualsAndHashCode
@NoArgsConstructor
@AllArgsConstructor
public class DynamicallyRegisteredRequestBody {
@JsonAlias("client_name")
......
......@@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>cz.muni.ics</groupId>
<artifactId>perun-oidc-parent</artifactId>
<version>2.4.7</version>
<version>2.4.8</version>
<packaging>pom</packaging>
<modules>
......