Skip to content
Draft
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
14 changes: 14 additions & 0 deletions apps/console/src/configs/routes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -721,6 +721,20 @@ export const getAppViewRoutes = (): RouteInterface[] => {
protected: true,
showOnSidePanel: false
},
{
category: "console:develop.features.sidePanel.categories.application",
component: lazy(() => import(
"@wso2is/admin.connections.v1/pages/flow-extension-edit-page")
),
exact: true,
icon: { icon: getSidePanelIcons().connections },
id: "flowExtensionEdit",
name: "Flow Extension Edit",
order: 4,
path: AppConstants.getPaths().get("FLOW_EXTENSION_EDIT"),
protected: true,
showOnSidePanel: false
},
{
category: "extensions:manage.sidePanel.categories.attributeManagement",
children: [
Expand Down
11 changes: 9 additions & 2 deletions apps/console/src/public/deployment.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,9 @@
"actions.types.list.preUpdatePassword.headersAndParameters",
"actions.types.list.preUpdateProfile.headersAndParameters",
"actions.types.org.list.preIssueAccessToken",
"actions.types.org.list.preRegistration"
"actions.types.org.list.preRegistration",
"actions.types.list.flowExtension.customErrors",
"actions.types.list.flowExtension.flowLevelOverrides"
],
"enabled": true,
"featureFlags": [],
Expand Down Expand Up @@ -1245,7 +1247,12 @@
"identityProviders.saml.attributeConsumingServiceIndex"
],
"enabled": true,
"featureFlags": [],
"featureFlags": [
{
"feature": "console.connections.templates.flowExtension",
"flag": "EXPERIMENTAL"
}
],
"scopes": {
"create": [
"internal_idp_create"
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@

.alert-nutral {
background-color: var(--oxygen-palette-grey-100);

.secondary-button {
margin-top: 10px;
}
}

.endpoint-uri-alert {
Expand All @@ -60,6 +64,16 @@
font-weight: normal;
}

.box-container {
margin-top: 24px;

.box-field {
.secondary-button {
margin-top: 14px;
}
}
}

.row.urlComponentTagRow {
display: inline-block !important;
width: auto !important;
Expand All @@ -77,6 +91,10 @@

.alert-nutral {
background-color: var(--oxygen-palette-grey-100);

.secondary-button {
margin-top: 10px;
}
}

.endpoint-uri-alert {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,12 @@ interface ActionEndpointConfigFormInterface extends IdentifiableComponentInterfa
* Specifies whether the headers and parameters section should be shown/hidden.
*/
showHeadersAndParams?: boolean;
/**
* Specifies whether the allowed parameters field should be shown within the
* headers-and-parameters section. Defaults to true. Set to false for action types
* (e.g. Flow Extension) where query parameter forwarding is not supported.
*/
showAllowedParameters?: boolean;
/**
* Specifies whether the form is read-only.
*/
Expand All @@ -80,6 +86,7 @@ const ActionEndpointConfigForm: FunctionComponent<ActionEndpointConfigFormInterf
isReadOnly,
showHeadersAndParams,
authenticationTypes = ActionsConstants.AUTH_TYPES,
showAllowedParameters = true,
onAuthenticationTypeChange,
["data-componentid"]: _componentId = "action-endpoint-config-form"
}: ActionEndpointConfigFormInterface): ReactElement => {
Expand Down Expand Up @@ -921,22 +928,24 @@ const ActionEndpointConfigForm: FunctionComponent<ActionEndpointConfigFormInterf
maxLength={ 100 }
minLength={ 0 }
/>
<FinalFormField
key="allowedParameters"
name="allowedParameters"
className="allowed-headers-and-params"
width={ 16 }
FormControlProps={ {
margin: "dense"
} }
ariaLabel="allowedParameters"
required={ false }
data-componentid={ `${_componentId}-action-allowed-parameters` }
type="text"
component={ allowedParametersSection }
maxLength={ 100 }
minLength={ 0 }
/>
{ showAllowedParameters && (
<FinalFormField
key="allowedParameters"
name="allowedParameters"
className="allowed-headers-and-params"
width={ 16 }
FormControlProps={ {
margin: "dense"
} }
ariaLabel="allowedParameters"
required={ false }
data-componentid={ `${_componentId}-action-allowed-parameters` }
type="text"
component={ allowedParametersSection }
maxLength={ 100 }
minLength={ 0 }
/>
) }
</>
);

Expand Down
28 changes: 28 additions & 0 deletions features/admin.actions.v1/models/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,10 @@ export interface ActionBasicResponseInterface extends ActionBaseResponseInterfac
* Links of the Action.
*/
links: LinkInterface[];
/**
* Optional icon URL for the Action (e.g., Flow Extension).
*/
iconUrl?: string;
}

/**
Expand Down Expand Up @@ -616,3 +620,27 @@ export interface ActionTypeCardInterface {
*/
disabled?: boolean
}

/**
* Expose entry in access config.
* Also used for modify entries (same structure: path + optional encryption flag).
*/
export interface ContextPathInterface {
path: string;
encrypted: boolean;
}

/**
* Access config for Flow Extension actions.
*/
export interface AccessConfigInterface {
expose: ContextPathInterface[];
modify: ContextPathInterface[];
}

/**
* Encryption config for Flow Extension actions.
*/
export interface EncryptionInterface {
certificate?: string;
}
Loading
Loading