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

Set isDefault Property of the Custom Federated Authenticator when updating Endpoint Details #7510

Merged
merged 4 commits into from
Feb 5, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
5 changes: 5 additions & 0 deletions .changeset/pink-jars-shake.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@wso2is/admin.connections.v1": patch
---

Set isDefault Property of the Custom Federated Authenticator when updating Endpoint Details #7510
Original file line number Diff line number Diff line change
Expand Up @@ -501,6 +501,7 @@ export const EditConnection: FunctionComponent<EditConnectionPropsInterface> = (
},
uri: values.endpointUri
},
isDefault: true,
isEnabled: identityProvider.isEnabled
};

Expand Down
41 changes: 2 additions & 39 deletions features/admin.connections.v1/models/connection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
* under the License.
*/

import { EndpointConfigFormPropertyInterface } from "@wso2is/admin.actions.v1/models/actions";
import { IdentifiableComponentInterface, LinkInterface, TestableComponentInterface } from "@wso2is/core/models";
import { GenericIconProps } from "@wso2is/react-components";
import { ComponentType, LazyExoticComponent, ReactElement } from "react";
Expand Down Expand Up @@ -753,7 +752,7 @@ export interface CustomAuthGeneralDetailsFormValuesInterface {
/**
* Display name of the connection
*/
displayName?: string
displayName?: string;
/**
* Description of the connection
*/
Expand Down Expand Up @@ -849,46 +848,10 @@ export interface CustomAuthenticationCreateWizardGeneralFormValuesInterface {
* Endpoint Authentication Update configuration.
*/
export interface EndpointAuthenticationUpdateInterface extends CustomAuthGeneralDetailsFormValuesInterface {
/**
* Name of the Action.
*/
name?: string;
/**
* Description of the Action.
*/
description?: string;
/**
* Endpoint configuration of the Action.
*/
endpoint?: Partial<EndpointInterface>;
}

/**
* Endpoint configuration.
*/
export interface EndpointInterface {
/**
* External endpoint.
*/
uri: string;
/**
* Authentication configurations of the Action.
*/
authentication: AuthenticationInterface;
}

/**
* Endpoint authentication configuration.
*/
interface AuthenticationInterface {
/**
* Authentication Type.
*/
type: EndpointAuthenticationType;
/**
* Authentication properties.
*/
properties: Partial<EndpointConfigFormPropertyInterface>;
endpoint?: Partial<ExternalEndpoint>;
}

/**
Expand Down
Loading