Skip to content
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
53 changes: 53 additions & 0 deletions integrations/applications/vue-application/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Copyright (c) 2025, WSO2 LLC. (http://www.wso2.com).
~
~ Licensed 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.
-->

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">

<parent>
<groupId>org.wso2.carbon.identity.integration.ui.templates</groupId>
<artifactId>integration-templates</artifactId>
<version>1.0.35-SNAPSHOT</version>
<relativePath>../../pom.xml</relativePath>
</parent>

<name>vue-application</name>
<artifactId>org.wso2.carbon.identity.integration.ui.templates.applications.vue-application</artifactId>
<modelVersion>4.0.0</modelVersion>
<packaging>pom</packaging>
<url>http://wso2.org</url>

<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<configuration>
<skipAssembly>false</skipAssembly>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
</plugin>
</plugins>
</build>

</project>
19 changes: 19 additions & 0 deletions integrations/applications/vue-application/resources/info.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"id": "vue-application",
"version": "1.0.0",
"name": "Vue",
"description": "Client-rendered (CSR) Vue apps scaffolded with create-vue or Vite.",
"image": "${CONSOLE_BASE_URL}/resources/applications/assets/images/technologies/vue-logo.svg",
"displayOrder": 2,
"category": "TECHNOLOGY",
"tags": [
"OIDC"
],
"type": "applications",
"customAttributes": [
{
"key": "featureStatus",
"value": "new"
}
]
}
130 changes: 130 additions & 0 deletions integrations/applications/vue-application/resources/metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,130 @@
{
"create": {
"form": {
"fields": [
{
"id": "application-name",
"aria-label": "Application Name",
"name": "name",
"label": "Name",
"type": "text",
"required": true,
"placeholder": "My App",
"dataComponentId": "vue-create-wizard-application-name",
"handlers": [
{
"name": "uniqueApplicationName",
"type": "initialize"
},
{
"name": "applicationName",
"type": "validation"
}
]
},
{
"id": "callback-url",
"aria-label": "Authorized Redirect URL",
"name": "inboundProtocolConfiguration.oidc.callbackURLs.[0]",
"label": "Authorized Redirect URL",
"type": "text",
"required": true,
"placeholder": "https://myapp.io/login",
"dataComponentId": "vue-create-wizard-callback-url"
},
{
"id": "image-url",
"aria-label": "Image URL",
"name": "imageUrl",
"label": "Image URL",
"type": "text",
"required": false,
"dataComponentId": "vue-create-wizard-image-url",
"hidden": true,
"handlers": [
{
"name": "dependentProperty",
"type": "submission",
"props": {
"placeholder": "clientOrigin"
}
},
{
"name": "dependentProperty",
"type": "submission",
"props": {
"placeholder": "appBaseNameWithoutTenant"
}
}
]
}
]
},
"guide": [ "##### Name\n***\n***\nA unique name to identify your application.\n***\nE.g., Vue\n***\n***\n***\n***\n##### Authorized Redirect URL\n***\n***\nThe URL to which the authorization code is sent to upon authentication and where the user is redirected to upon logout.\n***\nE.g., https://myapp.io/login" ]
},
"edit": {
"tabs": [
{
"id": "quick-start",
"displayName": "Guide",
"contentType": "guide",
"guide": "### Configure the `<AsgardeoProvider />`\n***\n***\n***\n> > To connect ${productName} with your Vue application, follow the [Vue SDK Quick Start](${docSiteURL}/quick-starts/vue/).\n> <!--rehype:type=info-->\n<!--rehype:type=wrapper&indent=6-->\n***\n***\n> Register the `AsgardeoPlugin` and wrap your app with `<AsgardeoProvider />` using the following configuration.\n<!--rehype:type=wrapper&indent=6-->\n***\n***\n> **`src/main.ts`**\n> ```ts\n> import { createApp } from 'vue'\n> import './style.css'\n> import App from './App.vue'\n> import { AsgardeoPlugin } from '@asgardeo/vue'\n>\n> const app = createApp(App)\n> app.use(AsgardeoPlugin)\n> app.mount('#app')\n> ```\n> ***\n> **`src/App.vue`**\n> ```vue\n> <script setup>\n> import { AsgardeoProvider } from '@asgardeo/vue'\n> </script>\n>\n> <template>\n> <AsgardeoProvider\n> client-id=\"${protocol.oidc.clientId}\"\n> base-url=\"${serverOrigin}/t/${tenantDomain}\"\n> :scopes=\"'${moderatedData.scopes.spaceSeperatedList}'.split(' ')\"\n> >\n> <!-- Your application content goes here -->\n> </AsgardeoProvider>\n> </template>\n> ```\n<!--rehype:type=wrapper&indent=6-->\n***\n***\n***\n***\n### Configurations\n***\n***\n***\n> For more details on configurations and server endpoints, go to the [Protocol](#tab=protocol)<!--rehype:external=false--> and [Info](#tab=info)<!--rehype:external=false--> tabs, respectively.\n> ***\n> ***\n> ***\n> **Client ID:**\n> ***\n> ```bash\n> ${protocol.oidc.clientId}\n> ```\n> ***\n> **Base URL:**\n> ***\n> ```bash\n> ${serverOrigin}/t/${tenantDomain}\n> ```\n> ***\n> **Redirect URL:**\n> ***\n> ```bash\n> ${protocol.oidc.callbackURLs[0]}\n> ```\n> ***\n> **Scope:**\n> ***\n> ```bash\n> ${moderatedData.scopes.spaceSeperatedList}\n> ```\n<!--rehype:type=wrapper&indent=6-->\n***\n***"
},
{
"id": "general",
"hiddenComponents": [
"application-edit-general-details-form-image-url"
]
},
{
"id": "protocol",
"displayName": "Protocol",
"hiddenComponents": [
"application-edit-access-settings-inbound-oauth2-oidc-form-pushed-authorization-requests",
"application-edit-access-settings-inbound-oauth2-oidc-form-request-object",
"application-edit-access-settings-inbound-oauth2-oidc-form-validate-token-binding",
"application-edit-access-settings-inbound-oauth2-oidc-form-revoke-access-token-upon-user-logout",
"application-edit-access-settings-inbound-oauth2-oidc-form-id-token-encryption",
"application-edit-access-settings-inbound-oauth2-oidc-form-id-token-encryption-algorithm",
"application-edit-access-settings-inbound-oauth2-oidc-form-id-token-encryption-method",
"application-edit-access-settings-inbound-oauth2-oidc-form-id-token-response-signing-algorithm",
"application-edit-access-settings-inbound-oauth2-oidc-form-logout-urls",
"application-edit-access-settings-inbound-oauth2-oidc-form-client-authentication",
"application-edit-access-settings-inbound-oauth2-oidc-form-validate-token-binding-and-revokation",
"application-edit-access-settings-inbound-oauth2-oidc-form-certificate"
]
},
{
"id": "user-attributes"
},
{
"id": "sign-in-method"
},
{
"id": "api-authorization"
},
{
"id": "application-roles"
},
{
"id": "provisioning"
},
{
"id": "advanced",
"hiddenComponents": [
"application-edit-advanced-settings-form-client-attestation",
"application-edit-advanced-settings-form-trusted-apps",
"application-edit-advanced-settings-form-platform-settings",
"application-edit-advanced-settings-form-application-native-authentication"
]
},
{
"id": "shared-access"
},
{
"id": "info"
}
],
"defaultActiveTabId": "quick-start"
}
}
66 changes: 66 additions & 0 deletions integrations/applications/vue-application/resources/template.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
{
"payload": {
"name": "Vue",
"advancedConfigurations": {
"discoverableByEndUsers": false,
"skipLogoutConsent": true,
"skipLoginConsent": true
},
"imageUrl": "${clientOrigin}/${appBaseNameWithoutTenant}/resources/applications/assets/images/technologies/vue-logo.svg",
"authenticationSequence": {
"type": "DEFAULT",
"steps": [
{
"id": 1,
"options": [
{
"idp": "LOCAL",
"authenticator": "basic"
}
]
}
]
},
"claimConfiguration":{
"dialect":"LOCAL",
"requestedClaims": [
{
"claim": {
"uri":"http://wso2.org/claims/username"
}
}
]
},
"inboundProtocolConfiguration": {
"oidc": {
"accessToken": {
"applicationAccessTokenExpiryInSeconds": 3600,
"bindingType": "sso-session",
"revokeTokensWhenIDPSessionTerminated": true,
"type": "Default",
"userAccessTokenExpiryInSeconds": 3600,
"validateTokenBinding": false
},
"grantTypes": [
"authorization_code",
"refresh_token"
],
"allowedOrigins": [],
"callbackURLs": [],
"pkce": {
"mandatory": true,
"supportPlainTransformAlgorithm": false
},
"publicClient": true,
"refreshToken": {
"expiryInSeconds": 86400,
"renewRefreshToken": true
}
}
},
"associatedRoles": {
"allowedAudience": "APPLICATION",
"roles": []
}
}
}
1 change: 1 addition & 0 deletions integrations/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@
<module>applications/nextjs-application</module>
<module>applications/angular-application</module>
<module>applications/expressjs-application</module>
<module>applications/vue-application</module>
<module>applications/digital-wallet-application</module>
</modules>

Expand Down
Loading