Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Downloads page has wrong Keycloak Javascript Adapter artifacts file names generated #513

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
266 changes: 266 additions & 0 deletions templates/downloads-211.ftl
Original file line number Diff line number Diff line change
@@ -0,0 +1,266 @@
<#macro download category label file tar=true zip=true tgz=false>
<#if zip>
<span class="me-4">
<a onclick="dl('${category}', '${label}');" href="https://github.com/keycloak/keycloak/releases/download/${version.version}/${file}.zip" target="_blank">
<i class="fa fa-download" aria-hidden="true"></i>
ZIP
</a>
(<a href="https://github.com/keycloak/keycloak/releases/download/${version.version}/${file}.zip.sha1" target="_blank">sha1</a>)
</span>
</#if>
<#if tar>
<span>
<a onclick="dl('${category}', '${label}');" href="https://github.com/keycloak/keycloak/releases/download/${version.version}/${file}.tar.gz" target="_blank">
<i class="fa fa-download" aria-hidden="true"></i>
TAR.GZ
</a>
(<a href="https://github.com/keycloak/keycloak/releases/download/${version.version}/${file}.tar.gz.sha1" target="_blank">sha1</a>)
</span>
</#if>
<#if tgz>
<span>
<a onclick="dl('${category}', '${label}');" href="https://github.com/keycloak/keycloak/releases/download/${version.version}/${file}.tgz" target="_blank">
<i class="fa fa-download" aria-hidden="true"></i>
TGZ
</a>
</span>
</#if>
</#macro>

<h2 class="mt-4">Server</h2>

<table class="table table-bordered table-striped">
<tbody>
<tr>
<td>Keycloak</td>
<td>Distribution powered by Quarkus</td>
<td>
<@download category="server" label="standalone" file="keycloak-${version.version}" />
</td>
</tr>
<tr>
<td>Container image</td>
<td>For Docker, Podman, Kubernetes and OpenShift</td>
<td>
<a href="https://quay.io/repository/keycloak/keycloak" target="_blank">
<i class="fa fa-link"></i>
Quay
</a>
</td>
</tr>
<tr>
<td>Operator</td>
<td>For Kubernetes and OpenShift</td>
<td>
<a href="https://operatorhub.io/operator/keycloak-operator" target="_blank">
<i class="fa fa-link"></i>
OperatorHub
</a>
</td>
</tr>
<tr>
<td>Third-party licenses</td>
<td>License and source code information for third-party dependencies</td>
<td>
<a href="https://github.com/keycloak/keycloak/releases/download/${version.version}/third-party-notice-keycloak.html" target="_blank">
<i class="fa fa-file"></i>
HTML
</a>
</td>
</tr>
</tbody>
</table>

<h2 class="mt-4">Quickstarts</h2>
<table class="table table-bordered table-striped">
<tbody>

<tr>
<td>Quickstarts distribution</td>
<td>
<span class="me-4">
<#if quickstartsTag??>
<#assign quickstartsLink="https://github.com/keycloak/keycloak-quickstarts/tree/${version.version}"/>
<#else>
<#assign quickstartsLink="https://github.com/keycloak/keycloak-quickstarts"/>
</#if>

<a onclick="dl('examples', 'quickstarts');" href="${quickstartsLink}" target="_blank">
<i class="fab fa-github" aria-hidden="true"></i>
GitHub
</a>
</span>
<span>
<a onclick="dl('examples', 'quickstarts');" href="https://github.com/keycloak/keycloak-quickstarts/archive/latest.zip" target="_blank">
<i class="fa fa-download" aria-hidden="true"></i>
ZIP
</a>
</span>
</td>
</tr>
</tbody>
</table>


<h2 class="mt-4">Client Adapters</h2>

<div>
<ul class="nav nav-tabs my-3" role="tablist">
<li role="presentation" class="nav-item"><a class="nav-link active" href="#oidc" aria-controls="oidc" role="tab" data-bs-toggle="tab">OpenID Connect</a></li>
<li role="presentation" class="nav-item"><a class="nav-link" href="#saml" aria-controls="saml" role="tab" data-bs-toggle="tab">SAML 2.0</a></li>
</ul>

<div class="tab-content">
<div role="tabpanel" class="tab-pane active margin-top" id="oidc">
<table class="table table-bordered table-striped">
<tr>
<td>WildFly <b>[DEPRECATED]</b></td>
<td>
<table class="kc-table-downloads-inner">
<tr>
<td>&lt;= 23</td>
<td>
<@download category="adapter" label="wildfly" file="keycloak-oidc-wildfly-adapter-${version.version}" tar=true />
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>JBoss EAP <b>[DEPRECATED]</b></td>
<td>
<table class="kc-table-downloads-inner">
<tr>
<td>7</td>
<td>
<@download category="adapter" label="eap7" file="keycloak-oidc-wildfly-adapter-${version.version}" tar=true />
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>JavaScript</td>
<td>
<table class="kc-table-downloads-inner">
<tr>
<td></td>
<td>
<span class="me-4">
<a href="https://www.npmjs.com/package/keycloak-js/v/${version.version}" target="_blank">
<i class="fa fa-link"></i> NPM
</a>
</span>
<@download category="adapter" label="js" file="keycloak-js-${version.version}" zip=false tar=false tgz=true />
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>Node.js <b>[DEPRECATED]</b></td>
<td>
<table class="kc-table-downloads-inner">
<tr>
<td></td>
<td>
<a href="https://www.npmjs.com/package/keycloak-connect/v/${version.version}" target="_blank">
<i class="fa fa-link"></i> NPM
</a>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>Jetty <b>[DEPRECATED]</b></td>
<td>
<table class="kc-table-downloads-inner">
<tr>
<td>9.4</td>
<td>
<@download category="adapter" label="jetty9.4" file="keycloak-oidc-jetty94-adapter-${version.version}" tar=true />
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>Tomcat <b>[DEPRECATED]</b></td>
<td>
<table class="kc-table-downloads-inner">
<tr>
<td>8, 9</td>
<td>
<@download category="adapter" label="tomcat" file="keycloak-oidc-tomcat-adapter-${version.version}" tar=true />
</td>
</tr>
</table>
</td>
</tr>
</tbody>
</table>
</div>

<div role="tabpanel" class="tab-pane margin-top" id="saml">
<table class="table table-bordered table-striped">
<tbody>
<tr>
<td>WildFly</td>
<td>
<table class="kc-table-downloads-inner">
<tr>
<td>
&lt;= 23
</td>
<td>
<@download category="adapter-saml" label="wildfly" file="keycloak-saml-wildfly-adapter-${version.version}" tar=true />
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>JBoss EAP</td>
<td>
<table class="kc-table-downloads-inner">
<tr>
<td>7</td>
<td>
<@download category="adapter-saml" label="eap7" file="keycloak-saml-wildfly-adapter-${version.version}" tar=true />
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>Jetty <b>[DEPRECATED]</b></td>
<td>
<table class="kc-table-downloads-inner">
<tr>
<td>9.4</td>
<td>
<@download category="adapter-saml" label="jetty9.4" file="keycloak-saml-jetty94-adapter-${version.version}" tar=true />
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>Tomcat <b>[DEPRECATED]</b></td>
<td>
<table class="kc-table-downloads-inner">
<tr>
<td>8, 9</td>
<td>
<@download category="adapter-saml" label="tomcat" file="keycloak-saml-tomcat-adapter-${version.version}" tar=true />
</td>
</tr>
</table>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
12 changes: 10 additions & 2 deletions templates/downloads-22.ftl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<#macro download category label file tar=true zip=true>
<#macro download category label file tar=true zip=true tgz=false>
<#if zip>
<span class="me-4">
<a onclick="dl('${category}', '${label}');" href="https://github.com/keycloak/keycloak/releases/download/${version.version}/${file}.zip" target="_blank">
Expand All @@ -17,6 +17,14 @@
(<a href="https://github.com/keycloak/keycloak/releases/download/${version.version}/${file}.tar.gz.sha1" target="_blank">sha1</a>)
</span>
</#if>
<#if tgz>
<span>
<a onclick="dl('${category}', '${label}');" href="https://github.com/keycloak/keycloak/releases/download/${version.version}/${file}.tgz" target="_blank">
<i class="fa fa-download" aria-hidden="true"></i>
TGZ
</a>
</span>
</#if>
</#macro>

<h2 class="mt-4">Server</h2>
Expand Down Expand Up @@ -117,7 +125,7 @@
<i class="fa fa-link"></i> NPM
</a>
</span>
<@download category="adapter" label="js" file="keycloak-oidc-js-adapter-${version.version}" tar=true />
<@download category="adapter" label="js" file="keycloak-js-${version.version}" zip=false tar=false tgz=true />
</td>
</tr>
</table>
Expand Down
12 changes: 10 additions & 2 deletions templates/downloads-23.ftl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<#macro download category label file tar=true zip=true>
<#macro download category label file tar=true zip=true tgz=false>
<#if zip>
<span class="me-4">
<a onclick="dl('${category}', '${label}');" href="https://github.com/keycloak/keycloak/releases/download/${version.version}/${file}.zip" target="_blank">
Expand All @@ -17,6 +17,14 @@
(<a href="https://github.com/keycloak/keycloak/releases/download/${version.version}/${file}.tar.gz.sha1" target="_blank">sha1</a>)
</span>
</#if>
<#if tgz>
<span>
<a onclick="dl('${category}', '${label}');" href="https://github.com/keycloak/keycloak/releases/download/${version.version}/${file}.tgz" target="_blank">
<i class="fa fa-download" aria-hidden="true"></i>
TGZ
</a>
</span>
</#if>
</#macro>

<h2 class="mt-4">Server</h2>
Expand Down Expand Up @@ -117,7 +125,7 @@
<i class="fa fa-link"></i> NPM
</a>
</span>
<@download category="adapter" label="js" file="keycloak-oidc-js-adapter-${version.version}" tar=true />
<@download category="adapter" label="js" file="keycloak-js-${version.version}" zip=false tar=false tgz=true />
</td>
</tr>
</table>
Expand Down
12 changes: 10 additions & 2 deletions templates/downloads-24.ftl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<#macro download category label file tar=true zip=true>
<#macro download category label file tar=true zip=true tgz=false>
<#if zip>
<span class="me-4">
<a onclick="dl('${category}', '${label}');" href="https://github.com/keycloak/keycloak/releases/download/${version.version}/${file}.zip" target="_blank">
Expand All @@ -17,6 +17,14 @@
(<a href="https://github.com/keycloak/keycloak/releases/download/${version.version}/${file}.tar.gz.sha1" target="_blank">sha1</a>)
</span>
</#if>
<#if tgz>
<span>
<a onclick="dl('${category}', '${label}');" href="https://github.com/keycloak/keycloak/releases/download/${version.version}/${file}.tgz" target="_blank">
<i class="fa fa-download" aria-hidden="true"></i>
TGZ
</a>
</span>
</#if>
</#macro>

<h2 class="mt-4">Server</h2>
Expand Down Expand Up @@ -113,7 +121,7 @@
<i class="fa fa-link"></i> NPM
</a>
</span>
<@download category="adapter" label="js" file="keycloak-oidc-js-adapter-${version.version}" tar=true />
<@download category="adapter" label="js" file="keycloak-js-${version.version}" zip=false tar=false tgz=true />
</td>
</tr>
</table>
Expand Down
2 changes: 1 addition & 1 deletion versions/21.1.0.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
"version": "21.1.0",
"blogTemplate": 2,
"documentationTemplate": 11,
"downloadTemplate": 21
"downloadTemplate": 211
}
2 changes: 1 addition & 1 deletion versions/21.1.1.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
"version": "21.1.1",
"blogTemplate": 2,
"documentationTemplate": 11,
"downloadTemplate": 21
"downloadTemplate": 211
}
2 changes: 1 addition & 1 deletion versions/21.1.2.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
"version": "21.1.2",
"blogTemplate": 2,
"documentationTemplate": 11,
"downloadTemplate": 21
"downloadTemplate": 211
}
Loading