From 7d2336487ac11a54b528c7c248af61bb678b98e8 Mon Sep 17 00:00:00 2001 From: Shenali Date: Thu, 19 Dec 2024 10:35:31 +0530 Subject: [PATCH 1/2] Introduce new tempates for custom authenticators --- .../connections/custom-authentication/info.json | 10 ++++++++++ .../custom-authentication/template.json | 12 ++++++++++++ .../external-custom-authentication/info.json | 10 ++++++++++ .../external-custom-authentication/template.json | 15 +++++++++++++++ .../internal-custom-authentication/info.json | 10 ++++++++++ .../internal-custom-authentication/template.json | 15 +++++++++++++++ .../twofactor-custom-authentication/info.json | 10 ++++++++++ .../twofactor-custom-authentication/template.json | 14 ++++++++++++++ 8 files changed, 96 insertions(+) create mode 100644 features/extension-mgt/org.wso2.carbon.identity.extension.mgt.feature/resources/extensions/connections/custom-authentication/info.json create mode 100644 features/extension-mgt/org.wso2.carbon.identity.extension.mgt.feature/resources/extensions/connections/custom-authentication/template.json create mode 100644 features/extension-mgt/org.wso2.carbon.identity.extension.mgt.feature/resources/extensions/connections/external-custom-authentication/info.json create mode 100644 features/extension-mgt/org.wso2.carbon.identity.extension.mgt.feature/resources/extensions/connections/external-custom-authentication/template.json create mode 100644 features/extension-mgt/org.wso2.carbon.identity.extension.mgt.feature/resources/extensions/connections/internal-custom-authentication/info.json create mode 100644 features/extension-mgt/org.wso2.carbon.identity.extension.mgt.feature/resources/extensions/connections/internal-custom-authentication/template.json create mode 100644 features/extension-mgt/org.wso2.carbon.identity.extension.mgt.feature/resources/extensions/connections/twofactor-custom-authentication/info.json create mode 100644 features/extension-mgt/org.wso2.carbon.identity.extension.mgt.feature/resources/extensions/connections/twofactor-custom-authentication/template.json diff --git a/features/extension-mgt/org.wso2.carbon.identity.extension.mgt.feature/resources/extensions/connections/custom-authentication/info.json b/features/extension-mgt/org.wso2.carbon.identity.extension.mgt.feature/resources/extensions/connections/custom-authentication/info.json new file mode 100644 index 000000000000..479b8c90201b --- /dev/null +++ b/features/extension-mgt/org.wso2.carbon.identity.extension.mgt.feature/resources/extensions/connections/custom-authentication/info.json @@ -0,0 +1,10 @@ +{ + "id": "custom-authentication", + "name": "Custom Authentication", + "description": "Enable login for users with external authentication service.", + "image": "", + "category": "DEFAULT", + "displayOrder": -1, + "tags": [], + "type": "custom-authenticator" +} diff --git a/features/extension-mgt/org.wso2.carbon.identity.extension.mgt.feature/resources/extensions/connections/custom-authentication/template.json b/features/extension-mgt/org.wso2.carbon.identity.extension.mgt.feature/resources/extensions/connections/custom-authentication/template.json new file mode 100644 index 000000000000..33457732d052 --- /dev/null +++ b/features/extension-mgt/org.wso2.carbon.identity.extension.mgt.feature/resources/extensions/connections/custom-authentication/template.json @@ -0,0 +1,12 @@ +{ + "category": "DEFAULT", + "description": "Register externally implemented authentication service.", + "displayOrder": 9, + "id": "custom-authentication", + "image": "", + "name": "Custom Authentication", + "services": [], + "disabled": false, + "templateId": "custom-authentication", +} + diff --git a/features/extension-mgt/org.wso2.carbon.identity.extension.mgt.feature/resources/extensions/connections/external-custom-authentication/info.json b/features/extension-mgt/org.wso2.carbon.identity.extension.mgt.feature/resources/extensions/connections/external-custom-authentication/info.json new file mode 100644 index 000000000000..f79b67ca37c2 --- /dev/null +++ b/features/extension-mgt/org.wso2.carbon.identity.extension.mgt.feature/resources/extensions/connections/external-custom-authentication/info.json @@ -0,0 +1,10 @@ +{ + "id": "external-custom-authentication", + "name": "External (Federated) User Authentication", + "description": "Authenticate and provision federated users.", + "image": "", + "category": "DEFAULT", + "displayOrder": -1, + "tags": [ "CUSTOM" ], + "type": "custom-authenticator" +} diff --git a/features/extension-mgt/org.wso2.carbon.identity.extension.mgt.feature/resources/extensions/connections/external-custom-authentication/template.json b/features/extension-mgt/org.wso2.carbon.identity.extension.mgt.feature/resources/extensions/connections/external-custom-authentication/template.json new file mode 100644 index 000000000000..bc722ebc6217 --- /dev/null +++ b/features/extension-mgt/org.wso2.carbon.identity.extension.mgt.feature/resources/extensions/connections/external-custom-authentication/template.json @@ -0,0 +1,15 @@ +{ + "category": "DEFAULT", + "description": "Register externally implemented authentication service.", + "docLink": "", + "templateGroup": "custom-authentication", + "displayOrder": 1, + "id": "external-custom-authentication", + "tags": [ "Custom" ], + "image": "", + "name": "External Custom Authentication", + "services": [], + "disabled": false, + "templateId": "external-custom-authentication" +} + diff --git a/features/extension-mgt/org.wso2.carbon.identity.extension.mgt.feature/resources/extensions/connections/internal-custom-authentication/info.json b/features/extension-mgt/org.wso2.carbon.identity.extension.mgt.feature/resources/extensions/connections/internal-custom-authentication/info.json new file mode 100644 index 000000000000..ef31ac03b9cb --- /dev/null +++ b/features/extension-mgt/org.wso2.carbon.identity.extension.mgt.feature/resources/extensions/connections/internal-custom-authentication/info.json @@ -0,0 +1,10 @@ +{ + "id": "internal-custom-authentication", + "name": "Internal User Authentication", + "description": "Collect identifier and authenticate user accounts managed in the organization.", + "image": "", + "category": "DEFAULT", + "displayOrder": -1, + "tags": [ "Custom" ], + "type": "custom-authenticator" +} diff --git a/features/extension-mgt/org.wso2.carbon.identity.extension.mgt.feature/resources/extensions/connections/internal-custom-authentication/template.json b/features/extension-mgt/org.wso2.carbon.identity.extension.mgt.feature/resources/extensions/connections/internal-custom-authentication/template.json new file mode 100644 index 000000000000..b2540fd760df --- /dev/null +++ b/features/extension-mgt/org.wso2.carbon.identity.extension.mgt.feature/resources/extensions/connections/internal-custom-authentication/template.json @@ -0,0 +1,15 @@ +{ + "category": "DEFAULT", + "description": "Register externally implemented authentication service.", + "docLink": "", + "templateGroup": "custom-authentication", + "displayOrder": 2, + "id": "internal-custom-authentication", + "tags": [ "Custom" ], + "image": "", + "name": "Internal Custom Authentication", + "services": [], + "disabled": false, + "templateId": "internal-custom-authentication" +} + diff --git a/features/extension-mgt/org.wso2.carbon.identity.extension.mgt.feature/resources/extensions/connections/twofactor-custom-authentication/info.json b/features/extension-mgt/org.wso2.carbon.identity.extension.mgt.feature/resources/extensions/connections/twofactor-custom-authentication/info.json new file mode 100644 index 000000000000..34053bddf0e6 --- /dev/null +++ b/features/extension-mgt/org.wso2.carbon.identity.extension.mgt.feature/resources/extensions/connections/twofactor-custom-authentication/info.json @@ -0,0 +1,10 @@ +{ + "id": "twofactor-custom-authentication", + "name": "2FA Authentication", + "description": "Only verify users in a second or later step of the login flow.", + "image": "", + "category": "DEFAULT", + "displayOrder": -1, + "tags": [ "CUSTOM" ], + "type": "custom-authenticator" +} diff --git a/features/extension-mgt/org.wso2.carbon.identity.extension.mgt.feature/resources/extensions/connections/twofactor-custom-authentication/template.json b/features/extension-mgt/org.wso2.carbon.identity.extension.mgt.feature/resources/extensions/connections/twofactor-custom-authentication/template.json new file mode 100644 index 000000000000..7a7ff37ec9a4 --- /dev/null +++ b/features/extension-mgt/org.wso2.carbon.identity.extension.mgt.feature/resources/extensions/connections/twofactor-custom-authentication/template.json @@ -0,0 +1,14 @@ +{ + "category": "DEFAULT", + "description": "Register externally implemented authentication service.", + "docLink": "", + "templateGroup": "custom-authentication", + "displayOrder": 1, + "id": "twofactor-custom-authentication", + "tags": [ "Custom" ], + "image": "", + "name": "2FA Authentication", + "services": [], + "disabled": false, + "templateId": "twofactor-custom-authentication" +} From 2187fe9cd3452703d6a09a6bde517d5d98d9152e Mon Sep 17 00:00:00 2001 From: Shenali Date: Thu, 19 Dec 2024 18:56:22 +0530 Subject: [PATCH 2/2] Add empty idp object --- .../extensions/connections/custom-authentication/info.json | 2 +- .../connections/external-custom-authentication/info.json | 2 +- .../connections/external-custom-authentication/template.json | 1 + .../connections/internal-custom-authentication/template.json | 1 + .../connections/twofactor-custom-authentication/info.json | 2 +- .../connections/twofactor-custom-authentication/template.json | 1 + 6 files changed, 6 insertions(+), 3 deletions(-) diff --git a/features/extension-mgt/org.wso2.carbon.identity.extension.mgt.feature/resources/extensions/connections/custom-authentication/info.json b/features/extension-mgt/org.wso2.carbon.identity.extension.mgt.feature/resources/extensions/connections/custom-authentication/info.json index 479b8c90201b..78e0c133a922 100644 --- a/features/extension-mgt/org.wso2.carbon.identity.extension.mgt.feature/resources/extensions/connections/custom-authentication/info.json +++ b/features/extension-mgt/org.wso2.carbon.identity.extension.mgt.feature/resources/extensions/connections/custom-authentication/info.json @@ -5,6 +5,6 @@ "image": "", "category": "DEFAULT", "displayOrder": -1, - "tags": [], + "tags": ["Custom"], "type": "custom-authenticator" } diff --git a/features/extension-mgt/org.wso2.carbon.identity.extension.mgt.feature/resources/extensions/connections/external-custom-authentication/info.json b/features/extension-mgt/org.wso2.carbon.identity.extension.mgt.feature/resources/extensions/connections/external-custom-authentication/info.json index f79b67ca37c2..e04f260b144c 100644 --- a/features/extension-mgt/org.wso2.carbon.identity.extension.mgt.feature/resources/extensions/connections/external-custom-authentication/info.json +++ b/features/extension-mgt/org.wso2.carbon.identity.extension.mgt.feature/resources/extensions/connections/external-custom-authentication/info.json @@ -5,6 +5,6 @@ "image": "", "category": "DEFAULT", "displayOrder": -1, - "tags": [ "CUSTOM" ], + "tags": [ "Custom" ], "type": "custom-authenticator" } diff --git a/features/extension-mgt/org.wso2.carbon.identity.extension.mgt.feature/resources/extensions/connections/external-custom-authentication/template.json b/features/extension-mgt/org.wso2.carbon.identity.extension.mgt.feature/resources/extensions/connections/external-custom-authentication/template.json index bc722ebc6217..1c5f48ba1893 100644 --- a/features/extension-mgt/org.wso2.carbon.identity.extension.mgt.feature/resources/extensions/connections/external-custom-authentication/template.json +++ b/features/extension-mgt/org.wso2.carbon.identity.extension.mgt.feature/resources/extensions/connections/external-custom-authentication/template.json @@ -6,6 +6,7 @@ "displayOrder": 1, "id": "external-custom-authentication", "tags": [ "Custom" ], + "idp": {}, "image": "", "name": "External Custom Authentication", "services": [], diff --git a/features/extension-mgt/org.wso2.carbon.identity.extension.mgt.feature/resources/extensions/connections/internal-custom-authentication/template.json b/features/extension-mgt/org.wso2.carbon.identity.extension.mgt.feature/resources/extensions/connections/internal-custom-authentication/template.json index b2540fd760df..330bc26f2cfa 100644 --- a/features/extension-mgt/org.wso2.carbon.identity.extension.mgt.feature/resources/extensions/connections/internal-custom-authentication/template.json +++ b/features/extension-mgt/org.wso2.carbon.identity.extension.mgt.feature/resources/extensions/connections/internal-custom-authentication/template.json @@ -7,6 +7,7 @@ "id": "internal-custom-authentication", "tags": [ "Custom" ], "image": "", + "idp": {}, "name": "Internal Custom Authentication", "services": [], "disabled": false, diff --git a/features/extension-mgt/org.wso2.carbon.identity.extension.mgt.feature/resources/extensions/connections/twofactor-custom-authentication/info.json b/features/extension-mgt/org.wso2.carbon.identity.extension.mgt.feature/resources/extensions/connections/twofactor-custom-authentication/info.json index 34053bddf0e6..a8fa95888951 100644 --- a/features/extension-mgt/org.wso2.carbon.identity.extension.mgt.feature/resources/extensions/connections/twofactor-custom-authentication/info.json +++ b/features/extension-mgt/org.wso2.carbon.identity.extension.mgt.feature/resources/extensions/connections/twofactor-custom-authentication/info.json @@ -5,6 +5,6 @@ "image": "", "category": "DEFAULT", "displayOrder": -1, - "tags": [ "CUSTOM" ], + "tags": [ "Custom", "2FA" ], "type": "custom-authenticator" } diff --git a/features/extension-mgt/org.wso2.carbon.identity.extension.mgt.feature/resources/extensions/connections/twofactor-custom-authentication/template.json b/features/extension-mgt/org.wso2.carbon.identity.extension.mgt.feature/resources/extensions/connections/twofactor-custom-authentication/template.json index 7a7ff37ec9a4..9e0e8d779f05 100644 --- a/features/extension-mgt/org.wso2.carbon.identity.extension.mgt.feature/resources/extensions/connections/twofactor-custom-authentication/template.json +++ b/features/extension-mgt/org.wso2.carbon.identity.extension.mgt.feature/resources/extensions/connections/twofactor-custom-authentication/template.json @@ -6,6 +6,7 @@ "displayOrder": 1, "id": "twofactor-custom-authentication", "tags": [ "Custom" ], + "idp": {}, "image": "", "name": "2FA Authentication", "services": [],