-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #607 from indigo-dc/add-manpage-for-tokensh
Add manpage for tokensh
- Loading branch information
Showing
7 changed files
with
86 additions
and
6 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
#!/bin/bash | ||
|
||
find_my_version() { | ||
AVAILABLE_VERSIONS=$(git branch -vva \ | ||
| grep packaging/v[0-9] \ | ||
| awk '{ print $1 }' \ | ||
| awk -F/ '{ print $4 }' \ | ||
| sort -V \ | ||
| grep -v ^$ \ | ||
) | ||
LATEST_VERSION=$(git branch -vva \ | ||
| grep packaging/v[0-9] \ | ||
| awk '{ print $1 }' \ | ||
| awk -F/ '{ print $4 }' \ | ||
| sort -V \ | ||
| tail -n 1 \ | ||
) | ||
MY_VERSION="v$(cat VERSION)" | ||
# MY_VERSION="v4.9.0" | ||
# MY_VERSION="v5.0.0" | ||
# MY_VERSION="v5.0.1" | ||
|
||
# echo "My version: ${MY_VERSION}" | ||
# echo "Available: ${AVAILABLE_VERSIONS}" | ||
# echo "Latest: ${LATEST_VERSION}" | ||
|
||
for VERSION in ${AVAILABLE_VERSIONS}; do | ||
# echo "" | ||
TESTVERSIONS="${VERSION} ${MY_VERSION}" | ||
RESULTING_VERSION=$(for i in ${TESTVERSIONS}; do echo $i; done \ | ||
| sort -V \ | ||
| tail -n 1 \ | ||
) | ||
# echo "Testing: ${VERSION} Result: ${RESULTING_VERSION}" | ||
[[ "${RESULTING_VERSION}" == "${MY_VERSION}" ]] && { | ||
VERSION_TO_USE=${VERSION} | ||
# echo "Apparently: ${RESULTING_VERSION} == ${MY_VERSION}" | ||
} | ||
done | ||
|
||
# echo -e "\n" | ||
# echo "VERSION_TO_USE: ${VERSION_TO_USE}" | ||
echo "${VERSION_TO_USE}" | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -149,3 +149,4 @@ trigger-win-installer: | |
|
||
|
||
|
||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
[NAME] | ||
oidc-tokensh \- Ensure that valid Access Tokens are always available | ||
|
||
oidc-tokensh starts a new shell within which oidc-agent is available. It | ||
prompts for a password to unlock an account configuration, when necessary. | ||
|
||
Access Tokens are automatically renewed for the specified account, before | ||
they expire. | ||
|
||
[FILES] | ||
$XDG_RUNTIME_DIR/bt_u$ID, /tmp/bt_u$ID, or $BEARER_TOKEN_FILE | ||
[SEE ALSO] | ||
oidc-agent(1), oidc-add(1), oidc-token(1) | ||
.PP | ||
Low-traffic mailing list with updates such as critical security incidents and new releases: https://www.lists.kit.edu/sympa/subscribe/oidc-agent-user | ||
.PP | ||
Full documentation can be found at https://indigo-dc.gitbooks.io/oidc-agent/user/oidc-tokensh |
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