2023-04-13 13:41:40 +00:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
2023-06-05 11:50:15 +00:00
|
|
|
<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/maven-v4_0_0.xsd">
|
2023-04-13 13:41:40 +00:00
|
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
|
|
|
|
<parent>
|
|
|
|
<artifactId>keycloak-js-parent</artifactId>
|
|
|
|
<groupId>org.keycloak</groupId>
|
|
|
|
<version>999.0.0-SNAPSHOT</version>
|
|
|
|
<relativePath>../../pom.xml</relativePath>
|
|
|
|
</parent>
|
|
|
|
|
|
|
|
<artifactId>keycloak-account-ui</artifactId>
|
|
|
|
|
|
|
|
<name>Keycloak Account UI</name>
|
|
|
|
<description>The user inferface to manage an account on the Keycloak server.</description>
|
|
|
|
|
2024-01-17 14:08:03 +00:00
|
|
|
<profiles>
|
|
|
|
<profile>
|
|
|
|
<id>withTranslations</id>
|
|
|
|
<activation>
|
|
|
|
<property>
|
|
|
|
<name>!skipCommunityTranslations</name>
|
|
|
|
</property>
|
|
|
|
</activation>
|
|
|
|
<build>
|
|
|
|
<plugins>
|
|
|
|
<plugin>
|
|
|
|
<artifactId>maven-resources-plugin</artifactId>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>copy-resources</id>
|
|
|
|
<phase>generate-resources</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>copy-resources</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<outputDirectory>${project.build.outputDirectory}</outputDirectory>
|
|
|
|
<resources>
|
|
|
|
<resource>
|
|
|
|
<directory>maven-resources-community</directory>
|
|
|
|
</resource>
|
|
|
|
</resources>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
</plugins>
|
|
|
|
</build>
|
|
|
|
</profile>
|
|
|
|
</profiles>
|
|
|
|
|
2023-04-13 13:41:40 +00:00
|
|
|
<build>
|
|
|
|
<resources>
|
|
|
|
<resource>
|
|
|
|
<directory>maven-resources</directory>
|
|
|
|
</resource>
|
|
|
|
<resource>
|
|
|
|
<directory>dist</directory>
|
|
|
|
<targetPath>theme/keycloak.v3/account/resources</targetPath>
|
|
|
|
<excludes>
|
|
|
|
<exclude>index.html</exclude>
|
|
|
|
</excludes>
|
|
|
|
</resource>
|
|
|
|
</resources>
|
|
|
|
|
|
|
|
<plugins>
|
|
|
|
<plugin>
|
|
|
|
<groupId>com.github.eirslett</groupId>
|
|
|
|
<artifactId>frontend-maven-plugin</artifactId>
|
2024-04-24 06:46:29 +00:00
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>lib-build</id>
|
|
|
|
<goals>
|
|
|
|
<goal>pnpm</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<arguments>build</arguments>
|
|
|
|
<environmentVariables>
|
|
|
|
<LIB>true</LIB>
|
|
|
|
</environmentVariables>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
<execution>
|
|
|
|
<id>pack</id>
|
|
|
|
<phase>package</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>pnpm</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<arguments>pack --pack-destination=target</arguments>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
2023-04-13 13:41:40 +00:00
|
|
|
</plugin>
|
|
|
|
<plugin>
|
|
|
|
<groupId>com.google.code.maven-replacer-plugin</groupId>
|
|
|
|
<artifactId>maven-replacer-plugin</artifactId>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<phase>process-resources</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>replace</goal>
|
|
|
|
</goals>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
<configuration>
|
|
|
|
<file>dist/index.html</file>
|
|
|
|
<outputFile>target/classes/theme/keycloak.v3/account/index.ftl</outputFile>
|
|
|
|
<regex>false</regex>
|
|
|
|
<replacements>
|
|
|
|
<replacement>
|
|
|
|
<token>src="./</token>
|
|
|
|
<value>src="${resourceUrl}/</value>
|
|
|
|
</replacement>
|
|
|
|
<replacement>
|
|
|
|
<token>href="./</token>
|
|
|
|
<value>href="${resourceUrl}/</value>
|
|
|
|
</replacement>
|
2023-06-05 11:50:15 +00:00
|
|
|
<replacement>
|
|
|
|
<token><![CDATA[<link rel="icon" type="image/svg+xml" href="${resourceUrl}/favicon.svg" />]]></token>
|
|
|
|
<value xml:space="preserve"><![CDATA[<link rel="icon" type="${properties.favIconType!"image/svg+xml"}" href="${resourceUrl}${properties.favIcon!"/favicon.svg"}" />]]></value>
|
|
|
|
</replacement>
|
2024-02-21 10:06:36 +00:00
|
|
|
<replacement>
|
|
|
|
<token><![CDATA[<meta name="description" content="Web site to manage keycloak" />]]></token>
|
|
|
|
<value xml:space="preserve"><![CDATA[<meta name="description" content="${properties.description!"Web site to manage keycloak"}" />]]></value>
|
|
|
|
</replacement>
|
2023-06-05 11:50:15 +00:00
|
|
|
<replacement>
|
2024-01-11 18:42:10 +00:00
|
|
|
<token><![CDATA[<title>Account Management</title>]]></token>
|
2023-11-20 16:34:03 +00:00
|
|
|
<value xml:space="preserve">
|
|
|
|
<![CDATA[
|
2024-01-11 18:42:10 +00:00
|
|
|
<title>${properties.title!"Account Management"}</title>
|
2023-11-20 16:34:03 +00:00
|
|
|
<script type="importmap">
|
|
|
|
{
|
|
|
|
"imports": {
|
|
|
|
"react": "${resourceCommonUrl}/vendor/react/react.production.min.js",
|
|
|
|
"react/jsx-runtime": "${resourceCommonUrl}/vendor/react/react-jsx-runtime.production.min.js",
|
|
|
|
"react-dom": "${resourceCommonUrl}/vendor/react-dom/react-dom.production.min.js"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
]]></value>
|
2023-06-05 11:50:15 +00:00
|
|
|
</replacement>
|
2023-04-13 13:41:40 +00:00
|
|
|
<replacement>
|
|
|
|
<token><![CDATA[</body>]]></token>
|
|
|
|
<value xml:space="preserve">
|
|
|
|
<![CDATA[
|
|
|
|
<script id="environment" type="application/json">
|
|
|
|
{
|
2023-04-25 11:11:20 +00:00
|
|
|
"authUrl": "${authUrl}",
|
2024-03-08 11:11:31 +00:00
|
|
|
"baseUrl": "${baseUrl}",
|
2023-04-25 11:11:20 +00:00
|
|
|
"realm": "${realm.name}",
|
2023-06-13 16:29:37 +00:00
|
|
|
"clientId": "${clientId}",
|
2023-06-05 11:50:15 +00:00
|
|
|
"resourceUrl": "${resourceUrl}",
|
|
|
|
"logo": "${properties.logo!""}",
|
2023-06-13 14:16:41 +00:00
|
|
|
"logoUrl": "${properties.logoUrl!""}",
|
2023-12-12 10:59:59 +00:00
|
|
|
"locale": "${locale}",
|
2023-06-13 14:16:41 +00:00
|
|
|
"features": {
|
|
|
|
"isRegistrationEmailAsUsername": ${realm.registrationEmailAsUsername?c},
|
|
|
|
"isEditUserNameAllowed": ${realm.editUsernameAllowed?c},
|
|
|
|
"isInternationalizationEnabled": ${realm.isInternationalizationEnabled()?c},
|
|
|
|
"isLinkedAccountsEnabled": ${realm.identityFederationEnabled?c},
|
|
|
|
"isMyResourcesEnabled": ${(realm.userManagedAccessAllowed && isAuthorizationEnabled)?c},
|
|
|
|
"deleteAccountAllowed": ${deleteAccountAllowed?c},
|
|
|
|
"updateEmailFeatureEnabled": ${updateEmailFeatureEnabled?c},
|
|
|
|
"updateEmailActionEnabled": ${updateEmailActionEnabled?c},
|
|
|
|
"isViewGroupsEnabled": ${isViewGroupsEnabled?c}
|
2024-04-16 15:24:22 +00:00
|
|
|
},
|
|
|
|
"referrerName": "${referrerName!""}",
|
|
|
|
"referrerUrl": "${referrer_uri!""}"
|
2023-04-13 13:41:40 +00:00
|
|
|
}
|
|
|
|
</script>
|
|
|
|
</body>
|
|
|
|
]]>
|
|
|
|
</value>
|
|
|
|
</replacement>
|
|
|
|
<replacement>
|
|
|
|
<token><![CDATA[</head>]]></token>
|
|
|
|
<value xml:space="preserve">
|
|
|
|
<![CDATA[
|
2023-12-13 20:49:27 +00:00
|
|
|
<#if properties.scripts?has_content>
|
|
|
|
<#list properties.scripts?split(' ') as script>
|
|
|
|
<script src="${resourceUrl}/${script}"></script>
|
|
|
|
</#list>
|
|
|
|
</#if>
|
2023-04-13 13:41:40 +00:00
|
|
|
<#if properties.styles?has_content>
|
|
|
|
<#list properties.styles?split(' ') as style>
|
|
|
|
<link href="${resourceUrl}/${style}" rel="stylesheet"/>
|
|
|
|
</#list>
|
|
|
|
</#if>
|
|
|
|
</head>
|
2023-06-05 11:50:15 +00:00
|
|
|
]]>
|
2023-04-13 13:41:40 +00:00
|
|
|
</value>
|
|
|
|
</replacement>
|
|
|
|
</replacements>
|
|
|
|
</configuration>
|
|
|
|
</plugin>
|
|
|
|
</plugins>
|
|
|
|
</build>
|
2023-06-05 11:50:15 +00:00
|
|
|
</project>
|