-
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 #608 from indigo-dc/prerel
5.2.3
- Loading branch information
Showing
12 changed files
with
123 additions
and
16 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 |
---|---|---|
@@ -1 +1 @@ | ||
5.2.2 | ||
5.2.3 |
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 |
---|---|---|
@@ -1,6 +1,31 @@ | ||
## Installation | ||
|
||
### Using WSL | ||
|
||
On a modern Windows system with WSL2 (verified, WSL1 **might** work) | ||
`oidc-agent` can be used through WSL: | ||
|
||
- If not already done install WSL according to https://learn.microsoft.com/en-us/windows/wsl/install | ||
- Add the `oidc-agent` repo and install according to http://repo.data.kit.edu for your chosen distribution | ||
- Add `eval $(oidc-agent-service use)` to your `.bashrc` | ||
- Now `oidc-agent` and friends can be used from the WSL and windows shell as | ||
used to, e.g. | ||
|
||
```shell | ||
# From WSL | ||
oidc-token <shortname> | ||
|
||
# From Powershell | ||
wsl oidc-token <shortname> | ||
``` | ||
|
||
### "Native" Installer | ||
|
||
We provide an installer for oidc-agent | ||
at: [http://repo.data.kit.edu/windows/oidc-agent/](http://repo.data.kit.edu/windows/oidc-agent/). | ||
|
||
The installer will install all necessary binaries and libraries and oidc-agent is ready to use. | ||
The installer will install all necessary binaries and libraries and oidc-agent is ready to use. | ||
|
||
We recommend to use the WSL method instead and only use this is installer if | ||
WSL is not possible. | ||
It is likely that support for this installer is dropped in the future. |
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
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