Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce "discoverableGroups" property to application advanced configurations #764

Draft
wants to merge 29 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
657d4a2
Update APIs to support custom authentication management.
Thisara-Welmilla Nov 6, 2024
4d65395
Update APIs to support custom authentication management.
Thisara-Welmilla Nov 8, 2024
36923ff
Update APIs to support custom authentication management.
Thisara-Welmilla Nov 8, 2024
4738d61
Update APIs to support custom authentication management.
Thisara-Welmilla Nov 8, 2024
3bd37c4
Bump carbon.identity.framework.version
Thisara-Welmilla Nov 9, 2024
9b6f432
Merge branch 'master' into add-API-support-create-user-def-auth
Thisara-Welmilla Nov 23, 2024
5781e57
Improve error codes for user defined local authenticator mgt.
Thisara-Welmilla Dec 17, 2024
81903c6
Merge branch 'master' into improve-error-code
Thisara-Welmilla Dec 18, 2024
f86ef5e
Improve error codes for user defined local authenticator mgt.
Thisara-Welmilla Dec 18, 2024
8314e4c
Update APIs to support custom authentication management.
Thisara-Welmilla Dec 19, 2024
161674d
Merge branch 'wso2:master' into add-API-support-create-user-def-auth
Thisara-Welmilla Dec 19, 2024
66c0438
Introduce "discoverableGroups" property to application advanced confi…
pavinduLakshan Dec 19, 2024
3c7923b
Bump carbon.identity.framework.version
Thisara-Welmilla Jan 2, 2025
d7eb0bb
Merge pull request #760 from Thisara-Welmilla/improve-error-code
Thisara-Welmilla Jan 2, 2025
c2f3658
[WSO2 Release] [Jenkins #1208] [Release 1.3.16] prepare release v1.3.16
wso2-jenkins-bot Jan 2, 2025
6d87ec2
[WSO2 Release] [Jenkins #1208] [Release 1.3.16] prepare for next deve…
wso2-jenkins-bot Jan 2, 2025
7f700ae
Merge pull request #734 from Thisara-Welmilla/add-API-support-create-…
Thisara-Welmilla Jan 2, 2025
45cb461
[WSO2 Release] [Jenkins #1210] [Release 1.3.17] prepare release v1.3.17
wso2-jenkins-bot Jan 2, 2025
732e9e3
[WSO2 Release] [Jenkins #1210] [Release 1.3.17] prepare for next deve…
wso2-jenkins-bot Jan 2, 2025
c91d223
add sharedProfileValueResolvingMethod as first class attribute to cla…
AnuradhaSK Jan 5, 2025
671313d
fix checkstyle issue
AnuradhaSK Jan 5, 2025
59238d5
Merge pull request #766 from AnuradhaSK/add-SharedProfileValueResolvi…
AnuradhaSK Jan 6, 2025
3dedb6f
[WSO2 Release] [Jenkins #1212] [Release 1.3.18] prepare release v1.3.18
wso2-jenkins-bot Jan 6, 2025
557496e
[WSO2 Release] [Jenkins #1212] [Release 1.3.18] prepare for next deve…
wso2-jenkins-bot Jan 6, 2025
ae44059
Rename DiscoverableGroup to DiscoverableGroupModel
pavinduLakshan Jan 6, 2025
c42da1d
Introduce "discoverableGroups" property to application advanced confi…
pavinduLakshan Dec 19, 2024
d221acb
Rename DiscoverableGroup to DiscoverableGroupModel
pavinduLakshan Jan 6, 2025
a5b9914
Rename DiscoverableGroup to DiscoverableGroupModel
pavinduLakshan Jan 7, 2025
a4db9cc
Merge branch 'discoverable_groups_api' of https://github.com/pavinduL…
pavinduLakshan Jan 7, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<parent>
<groupId>org.wso2.carbon.identity.server.api</groupId>
<artifactId>org.wso2.carbon.identity.api.expired.password.identification</artifactId>
<version>1.3.16-SNAPSHOT</version>
<version>1.3.19-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<parent>
<groupId>org.wso2.carbon.identity.server.api</groupId>
<artifactId>org.wso2.carbon.identity.api.expired.password.identification</artifactId>
<version>1.3.16-SNAPSHOT</version>
<version>1.3.19-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<parent>
<artifactId>identity-api-server</artifactId>
<groupId>org.wso2.carbon.identity.server.api</groupId>
<version>1.3.16-SNAPSHOT</version>
<version>1.3.19-SNAPSHOT</version>
<relativePath>../../pom.xml</relativePath>
</parent>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<parent>
<groupId>org.wso2.carbon.identity.server.api</groupId>
<artifactId>org.wso2.carbon.identity.api.idle.account.identification</artifactId>
<version>1.3.16-SNAPSHOT</version>
<version>1.3.19-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<parent>
<groupId>org.wso2.carbon.identity.server.api</groupId>
<artifactId>org.wso2.carbon.identity.api.idle.account.identification</artifactId>
<version>1.3.16-SNAPSHOT</version>
<version>1.3.19-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<parent>
<artifactId>identity-api-server</artifactId>
<groupId>org.wso2.carbon.identity.server.api</groupId>
<version>1.3.16-SNAPSHOT</version>
<version>1.3.19-SNAPSHOT</version>
<relativePath>../../pom.xml</relativePath>
</parent>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<parent>
<groupId>org.wso2.carbon.identity.server.api</groupId>
<artifactId>org.wso2.carbon.identity.api.server.action.management</artifactId>
<version>1.3.16-SNAPSHOT</version>
<version>1.3.19-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<parent>
<groupId>org.wso2.carbon.identity.server.api</groupId>
<artifactId>org.wso2.carbon.identity.api.server.action.management</artifactId>
<version>1.3.16-SNAPSHOT</version>
<version>1.3.19-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<parent>
<groupId>org.wso2.carbon.identity.server.api</groupId>
<artifactId>identity-api-server</artifactId>
<version>1.3.16-SNAPSHOT</version>
<version>1.3.19-SNAPSHOT</version>
<relativePath>../../pom.xml</relativePath>
</parent>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<parent>
<artifactId>org.wso2.carbon.identity.api.server.admin.advisory.management</artifactId>
<groupId>org.wso2.carbon.identity.server.api</groupId>
<version>1.3.16-SNAPSHOT</version>
<version>1.3.19-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<parent>
<artifactId>org.wso2.carbon.identity.api.server.admin.advisory.management</artifactId>
<groupId>org.wso2.carbon.identity.server.api</groupId>
<version>1.3.16-SNAPSHOT</version>
<version>1.3.19-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<parent>
<artifactId>identity-api-server</artifactId>
<groupId>org.wso2.carbon.identity.server.api</groupId>
<version>1.3.16-SNAPSHOT</version>
<version>1.3.19-SNAPSHOT</version>
<relativePath>../../pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<parent>
<groupId>org.wso2.carbon.identity.server.api</groupId>
<artifactId>org.wso2.carbon.identity.api.server.api.resource</artifactId>
<version>1.3.16-SNAPSHOT</version>
<version>1.3.19-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<parent>
<groupId>org.wso2.carbon.identity.server.api</groupId>
<artifactId>org.wso2.carbon.identity.api.server.api.resource</artifactId>
<version>1.3.16-SNAPSHOT</version>
<version>1.3.19-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<parent>
<artifactId>identity-api-server</artifactId>
<groupId>org.wso2.carbon.identity.server.api</groupId>
<version>1.3.16-SNAPSHOT</version>
<version>1.3.19-SNAPSHOT</version>
<relativePath>../../pom.xml</relativePath>
</parent>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@
<parent>
<groupId>org.wso2.carbon.identity.server.api</groupId>
<artifactId>org.wso2.carbon.identity.api.server.application.management</artifactId>
<version>1.3.16-SNAPSHOT</version>
<version>1.3.19-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>

<artifactId>org.wso2.carbon.identity.api.server.application.management.common</artifactId>
<version>1.3.16-SNAPSHOT</version>
<version>1.3.19-SNAPSHOT</version>
<packaging>jar</packaging>

<dependencies>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@
<parent>
<groupId>org.wso2.carbon.identity.server.api</groupId>
<artifactId>org.wso2.carbon.identity.api.server.application.management</artifactId>
<version>1.3.16-SNAPSHOT</version>
<version>1.3.19-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>

<name>WSO2 Identity Server - Applications Rest API</name>
<description>WSO2 Identity Server - Applications Rest API</description>
<artifactId>org.wso2.carbon.identity.api.server.application.management.v1</artifactId>
<version>1.3.16-SNAPSHOT</version>
<version>1.3.19-SNAPSHOT</version>
<packaging>jar</packaging>

<dependencies>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2023, WSO2 LLC. (http://www.wso2.com).
* Copyright (c) 2024, WSO2 LLC. (http://www.wso2.com).
*
* WSO2 LLC. licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file except
Expand Down Expand Up @@ -27,6 +27,7 @@
import org.wso2.carbon.identity.api.server.application.management.v1.AdditionalSpProperty;
import org.wso2.carbon.identity.api.server.application.management.v1.AdvancedApplicationConfigurationAttestationMetaData;
import org.wso2.carbon.identity.api.server.application.management.v1.Certificate;
import org.wso2.carbon.identity.api.server.application.management.v1.DiscoverableGroupModel;
import org.wso2.carbon.identity.api.server.application.management.v1.TrustedAppConfiguration;
import javax.validation.constraints.*;

Expand All @@ -40,6 +41,8 @@ public class AdvancedApplicationConfiguration {

private Boolean saas;
private Boolean discoverableByEndUsers;
private List<DiscoverableGroupModel> discoverableGroups = null;

private Certificate certificate;
private Boolean skipLoginConsent;
private Boolean skipLogoutConsent;
Expand Down Expand Up @@ -92,6 +95,32 @@ public void setDiscoverableByEndUsers(Boolean discoverableByEndUsers) {

/**
**/
public AdvancedApplicationConfiguration discoverableGroups(List<DiscoverableGroupModel> discoverableGroups) {

this.discoverableGroups = discoverableGroups;
return this;
}

@ApiModelProperty(value = "")
@JsonProperty("discoverableGroups")
@Valid
public List<DiscoverableGroupModel> getDiscoverableGroups() {
return discoverableGroups;
}
public void setDiscoverableGroups(List<DiscoverableGroupModel> discoverableGroups) {
this.discoverableGroups = discoverableGroups;
}

public AdvancedApplicationConfiguration addDiscoverableGroupsItem(DiscoverableGroupModel discoverableGroupsItem) {
if (this.discoverableGroups == null) {
this.discoverableGroups = new ArrayList<>();
}
this.discoverableGroups.add(discoverableGroupsItem);
return this;
}

/**
**/
public AdvancedApplicationConfiguration certificate(Certificate certificate) {

this.certificate = certificate;
Expand Down Expand Up @@ -317,6 +346,7 @@ public boolean equals(java.lang.Object o) {
AdvancedApplicationConfiguration advancedApplicationConfiguration = (AdvancedApplicationConfiguration) o;
return Objects.equals(this.saas, advancedApplicationConfiguration.saas) &&
Objects.equals(this.discoverableByEndUsers, advancedApplicationConfiguration.discoverableByEndUsers) &&
Objects.equals(this.discoverableGroups, advancedApplicationConfiguration.discoverableGroups) &&
Objects.equals(this.certificate, advancedApplicationConfiguration.certificate) &&
Objects.equals(this.skipLoginConsent, advancedApplicationConfiguration.skipLoginConsent) &&
Objects.equals(this.skipLogoutConsent, advancedApplicationConfiguration.skipLogoutConsent) &&
Expand All @@ -332,7 +362,7 @@ public boolean equals(java.lang.Object o) {

@Override
public int hashCode() {
return Objects.hash(saas, discoverableByEndUsers, certificate, skipLoginConsent, skipLogoutConsent, useExternalConsentPage, returnAuthenticatedIdpList, enableAuthorization, fragment, enableAPIBasedAuthentication, attestationMetaData, trustedAppConfiguration, additionalSpProperties);
return Objects.hash(saas, discoverableByEndUsers, discoverableGroups, certificate, skipLoginConsent, skipLogoutConsent, useExternalConsentPage, returnAuthenticatedIdpList, enableAuthorization, fragment, enableAPIBasedAuthentication, attestationMetaData, trustedAppConfiguration, additionalSpProperties);
}

@Override
Expand All @@ -343,6 +373,7 @@ public String toString() {

sb.append(" saas: ").append(toIndentedString(saas)).append("\n");
sb.append(" discoverableByEndUsers: ").append(toIndentedString(discoverableByEndUsers)).append("\n");
sb.append(" discoverableGroups: ").append(toIndentedString(discoverableGroups)).append("\n");
sb.append(" certificate: ").append(toIndentedString(certificate)).append("\n");
sb.append(" skipLoginConsent: ").append(toIndentedString(skipLoginConsent)).append("\n");
sb.append(" skipLogoutConsent: ").append(toIndentedString(skipLogoutConsent)).append("\n");
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,128 @@
/*
* Copyright (c) 2024, WSO2 LLC. (http://www.wso2.com).
*
* WSO2 LLC. licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file except
* in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/

package org.wso2.carbon.identity.api.server.application.management.v1;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
import javax.validation.constraints.*;


import io.swagger.annotations.*;
import java.util.Objects;
import javax.validation.Valid;
import javax.xml.bind.annotation.*;

public class DiscoverableGroup {

private String userStore;
private List<String> groups = null;

/**
* ID of the user store the groups belong to
**/
public DiscoverableGroup userStore(String userStore) {

this.userStore = userStore;
return this;
}

@ApiModelProperty(value = "ID of the user store the groups belong to")
@JsonProperty("userStore")
@Valid
public String getUserStore() {
return userStore;
}
public void setUserStore(String userStore) {
this.userStore = userStore;
}

/**
* List of group IDs configured for discoverability
**/
public DiscoverableGroup groups(List<String> groups) {

this.groups = groups;
return this;
}

@ApiModelProperty(value = "List of group IDs configured for discoverability")
@JsonProperty("groups")
@Valid
public List<String> getGroups() {
return groups;
}
public void setGroups(List<String> groups) {
this.groups = groups;
}

public DiscoverableGroup addGroupsItem(String groupsItem) {
if (this.groups == null) {
this.groups = new ArrayList<>();
}
this.groups.add(groupsItem);
return this;
}

@Override
public boolean equals(java.lang.Object o) {

if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
DiscoverableGroup discoverableGroup = (DiscoverableGroup) o;
return Objects.equals(this.userStore, discoverableGroup.userStore) &&
Objects.equals(this.groups, discoverableGroup.groups);
}

@Override
public int hashCode() {
return Objects.hash(userStore, groups);
}

@Override
public String toString() {

StringBuilder sb = new StringBuilder();
sb.append("class DiscoverableGroup {\n");

sb.append(" userStore: ").append(toIndentedString(userStore)).append("\n");
sb.append(" groups: ").append(toIndentedString(groups)).append("\n");
sb.append("}");
return sb.toString();
}

/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {

if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n");
}
}
Loading
Loading