Skip to content

Commit

Permalink
Merge pull request wso2#4888 from NipuniBhagya/connection-templates
Browse files Browse the repository at this point in the history
Add  default connection templates
  • Loading branch information
sumedhe committed Sep 4, 2023
2 parents f3930bc + 700abb0 commit 0612eb0
Show file tree
Hide file tree
Showing 34 changed files with 3,206 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -738,7 +738,7 @@

<!-- Extension management service configurations -->
<ExtensionManagementService>
<ExtensionTypes>applications,identity-providers</ExtensionTypes>
<ExtensionTypes>applications,connections,identity-providers</ExtensionTypes>
</ExtensionManagementService>

<!-- Server Synchronization Tolerance Configuration in seconds -->
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"id": "apple-idp",
"name": "Apple",
"description": "Login users with their Apple IDs.",
"image": "assets/images/logos/apple.svg",
"displayOrder": 5,
"category": "DEFAULT",
"tags": [ "Social-Login" ],
"type": "identity-provider"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,352 @@
{
"create": {
"image": "assets/images/logos/apple.svg",
"header": "Apple",
"Subheading": "Login users with their Apple IDs.",
"documentation": "{ENV}/asgardeo/docs/guides/authentication/social-login/add-apple-login/",
"modal": {
"form": {
"fields": [
{
"index": 0,
"ariaLabel": "Apple IDP Name",
"name": "name",
"label": "Name",
"type": "text",
"required": true,
"placeholder": "Enter a name for the connection.",
"initialValue": "Apple",
"maxLength": "50",
"minLength": "3",
"data-testid": "apple-idp-create-wizard-content-idp-name",
"width": "13"
},
{
"index": 1,
"ariaLabel": "Apple Client ID",
"type": "text",
"name": "clientId",
"label": "Services ID",
"placeholder": "Enter the Services ID registered for the Apple application.",
"required": true,
"autoComplete": true,
"maxLength": "100",
"minLength": "3",
"data-testid": "apple-idp-create-wizard-content-idp-client-id",
"width": "13"
},
{
"index": 2,
"ariaLabel": "Apple Team ID",
"type": "text",
"name": "teamId",
"label": "Team ID",
"placeholder": "Enter the Team ID of the Apple developer team.",
"required": true,
"autoComplete": true,
"maxLength": "10",
"minLength": "10",
"data-testid": "apple-idp-create-wizard-content-idp-team-id",
"width": "13"
},
{
"index": 3,
"ariaLabel": "Apple Key ID",
"type": "text",
"name": "keyId",
"label": "Key ID",
"placeholder": "Enter the the Key ID of the application's private key.",
"required": true,
"autoComplete": true,
"maxLength": "10",
"minLength": "10",
"data-testid": "apple-idp-create-wizard-content-idp-key-id",
"width": "13"
},
{
"index": 4,
"ariaLabel": "Apple Private Key",
"type": "password",
"name": "privateKey",
"label": "Private Key",
"placeholder": "Enter the Private Key generated for the Apple application.",
"required": true,
"autoComplete": true,
"data-testid": "apple-idp-create-wizard-content-idp-private-key",
"maxLength": "1000",
"minLength": "100",
"width": "13"
}
]
},
"wizardHelp": {
"message": {
"copyInputFields": [
{
"description": "Use the following as a <strong>Web Domain</strong>.",
"value": "domain_name"
},
{
"description": "Add the following URL as a <strong>Return URL</strong>.",
"value": "redirect_uri"
}
],
"header": "Prerequites",
"paragraphs": [
"Before you begin, create a <strong>Sign in With Apple</strong> enabled application on <a href=\"https://developer.apple.com/\" target=\"_blank\" rel=\"noopener noreferrer\">Apple Developer Portal</a> with a <strong>Services ID</strong> and a <strong>Private Key</strong>."
],
"link": {
"text": "See Apple's guide on configuring your environment for Sign in with Apple.",
"url": "https://developer.apple.com/documentation/sign_in_with_apple/configuring_your_environment_for_sign_in_with_apple"
}
},
"fields": [
{
"fieldName": "Name",
"hint": "Provide a unique name for the connection."
},
{
"fieldName": "Services ID",
"hint": "Provide the <Code class=\"inline-code\">Services ID</Code> created at Apple."
},
{
"fieldName": "Team ID",
"hint": "Provide the Apple developer <Code class=\"inline-code\">Team ID</Code>."
},
{
"fieldName": "Key ID",
"hint": "Provide the <Code class=\"inline-code\">Key Identifier</Code> of the private key generated."
},
{
"fieldName": "Private Key",
"hint": "Provide the <Code class=\"inline-code\">Private Key</Code> generated for the application."
}
]
}
},
"properties": [
{
"key": "ClientId",
"value": ""
},
{
"key": "ClientSecret",
"value": ""
},
{
"key": "SecretValidityPeriod",
"value": "15777000"
},
{
"key": "TeamId",
"value": ""
},
{
"key": "KeyId",
"value": ""
},
{
"key": "PrivateKey",
"value": ""
},
{
"key": "callbackUrl",
"value": "/commonauth"
},
{
"key": "Scopes",
"value": "email,name"
},
{
"key": "AdditionalQueryParameters",
"value": ""
},
{
"key": "RegenerateClientSecret",
"value": "false"
},
{
"key": "SecretExpiryEpochTime",
"value": "0"
}
]
},
"edit" : {
"tabs": {
"general" : [
{
"index": 0,
"displayOrder" : 1,
"ariaLabel": "name",
"inputType": "resource_name",
"type": "text",
"name": "name",
"label": "Name",
"required": true ,
"message": "Identity Provider name is required",
"placeholder": "Apple",
"validation": true,
"value": "",
"maxLength": "50",
"minLength": "3",
"data-testid": "idp-edit-page-general-settings-form-idp-name",
"hint": "Enter a unique name for this connection.",
"readOnly": false
},
{
"index": 1,
"displayOrder" : 2,
"type": "textarea",
"name" : "description",
"ariaLabel" : "description",
"label" : "Description",
"required": false,
"placeholder": "Enter a description of the identity provider.",
"value": "",
"data-testid": "idp-edit-page-general-settings-form-idp-description",
"maxLength": "300",
"minLength": "3",
"hint": "A text description of the identity provider.",
"readOnly": false
},
{
"index": 2,
"displayOrder" : 3,
"name": "jwks_endpoint",
"ariaLabel": "JWKS Endpoint URL",
"inputType": "url",
"type": "text",
"label": "JWKS Endpoint URL",
"required": true,
"placeholder": "https://{ oauth-provider-url }/oauth/jwks",
"value": "",
"data-testid": "",
"maxLength": "2048",
"minLength": "10",
"hint": "A JSON Web Key (JWK) Set is a JSON object that represents a set of JWKs. The JSON object MUST have a keys member, with its value being an array of JWKs.",
"readOnly": false
},
{
"index": 3,
"displayOrder" : 4,
"type": "certbox",
"isJWKSEnabled": "",
"isReadOnly": "",
"editingIDP": "",
"onUpdate": "",
"isPEMEnabled": ""
}

],
"settings" : [
{
"index": 0,
"displayOrder" : 5,
"ariaLabel": "Apple authenticator client ID",
"inputType": "default",
"name": "ClientId",
"label": "Services ID",
"placeholder": "Enter the Services ID registered for the Apple application.",
"hint": "The unique identifier which is provided when creating the Apple Services ID.",
"required": true,
"readOnly": false,
"value": "",
"maxLength": "50",
"minLength": "3",
"width": "16",
"data-testid": "idp-edit-page-authenticator-settings-AppleOIDCAuthenticator-content-client-id"
},
{
"index": 1,
"displayOrder" : 6,
"ariaLabel": "Apple authenticator team ID",
"inputType": "default",
"name": "TeamId",
"label": "Team ID",
"placeholder": "Enter the Team ID of the Apple developer team.",
"hint": "The generated unique ID which is assigned to the Apple developer team.",
"required": true,
"readOnly": false,
"value": "",
"maxLength": "10",
"minLength": "10",
"width": "16",
"data-testid": "idp-edit-page-authenticator-settings-AppleOIDCAuthenticator-content-team-id"
},
{
"index": 2,
"displayOrder" : 7,
"ariaLabel": "Apple authenticator private key",
"inputType": "password",
"type": "password",
"name": "PrivateKey",
"label": "Private Key",
"placeholder": "Enter the Private Key generated for the Apple application.",
"hint": "The generated private key for the Apple application.",
"required": true,
"readOnly": false,
"value": "",
"maxLength": "1000",
"minLength": "100",
"width": "16",
"data-testid": "idp-edit-page-authenticator-settings-AppleOIDCAuthenticator-content-private-key"
},
{
"index": 3,
"displayOrder" : 8,
"ariaLabel": "Client secret validity period",
"inputType": "default",
"type": "text",
"name": "SecretValidityPeriod",
"label": "Client Secret Validity Period",
"placeholder": "Enter the Private Key generated for the Apple application.",
"hint": "The generated private key for the Apple application.",
"required": true,
"readOnly": false,
"value": "",
"maxLength": "8",
"minLength": "2",
"width": "16",
"data-testid": "idp-edit-page-authenticator-settings-AppleOIDCAuthenticator-content-secret-validity-period"
},
{
"index": 4,
"displayOrder" : 9,
"type": "text",
"ariaLabel": "Apple authenticator authorized redirect URL",
"inputType": "copy_input",
"name": "callbackUrl",
"label": "Authorized redirect URI",
"placeholder": "",
"hint": "The authorized redirect URI used to obtain Apple credentials.",
"required": "",
"value": "",
"readOnly": true,
"maxLength": "",
"minLength": "",
"width": "16",
"data-testid": "idp-edit-page-authenticator-settings-AppleOIDCAuthenticator-content-authorized-redirect-url-wrapper"
},
{
"index": 5,
"displayOrder" : 10,
"ariaLabel": "Additional query parameters",
"inputType": "default",
"name": "AdditionalQueryParameters",
"label": "Additional Query Parameters",
"placeholder": "Enter additional query parameters.",
"hint": "Additional query parameters to be sent to Apple.",
"required": false,
"value": "",
"readOnly": false,
"maxLength": "1000",
"minLength": "0",
"width": "16",
"data-testid": "idp-edit-page-authenticator-settings-AppleOIDCAuthenticator-content-additional-query-parameters"
}
],
"quickStart": "apple"
}

}
}
Loading

0 comments on commit 0612eb0

Please sign in to comment.