-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
51 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 19 additions & 10 deletions
29
app/src/main/resources/templates/partial/api-key-credentials.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,23 @@ | ||
<article> | ||
<header th:text="|Credentials for ${name}|"> | ||
<header> | ||
Credentials | ||
</header> | ||
<p>These are the credentials for your api key. They will not be shown again.</p> | ||
<ul class="tuple"> | ||
<li> | ||
<span>Api key</span> | ||
<span th:text="${apiKeyToken}"></span> | ||
</li> | ||
</ul> | ||
<footer> | ||
<a th:href="@{/api-keys/{id}(id=${apiKeyId})}">Go to api key</a> | ||
</footer> | ||
<div class="tuple-right-expand"> | ||
<div th:if="${apiKeyToken != null}"> | ||
<span>Api key:</span> | ||
<code th:text="${apiKeyToken}"></code> | ||
</div> | ||
</div> | ||
<th:block th:if="${apiKeyToken != null}"> | ||
<p> | ||
Read more here about how to use Client API here: <br><a href="https://github.com/cthit/Gamma/wiki/Client-API">github.com/cthit/Gamma/wiki/Client-API</a> | ||
</p> | ||
<div> | ||
To authorize when doing API requests, simply add this header: | ||
</div> | ||
<p> | ||
<code>Authorization: pre-shared <span th:text="${apiKeyId}"></span>:<span th:text="${apiKeyToken}"></span></code> | ||
</p> | ||
</th:block> | ||
</article> |