You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: gitbook/user.md
+36-13
Original file line number
Diff line number
Diff line change
@@ -3,11 +3,21 @@ Using orchent is made as easy as possible. In case you are lost orchent provides
3
3
information with its 'help' command, just call `orchent --help`.
4
4
5
5
## Setting The Access Token
6
-
The orchestrator needs a way to authorize orchent, this is done by a so called access token.
7
-
The access token is retrieved beforhand at either [IAM](https://github.com/indigo-iam/iam) or
8
-
[WaTTS](https://github.com/indigo-dc/tts).
6
+
Orchent uses so called access token to authorize itself against the orchestrator.
9
7
10
-
Once an access token is known, it needs to be exportet in the environment variable
8
+
In The newest release orchent supports the usage of the [oidc-agent](https://github.com/indigo-dc/oidc-agent). By using the oidc-agent the need to copy and paste access tokens is history.
9
+
Two things need to be done to use the oidc-agent with orcht. The first thing is to export the
10
+
name of the oidc-agent account to use in the environmental variable 'ORCHENT_AGENT_ACCOUNT'.
11
+
The account must be loaded into the agent before usage. The second thing is to ensure that
12
+
the path to the socket of the oidc-agent is set within the variable 'OIDC_SOCK':
13
+
14
+
```
15
+
export ORCHENT_AGENT_ACCOUNT=<account name>
16
+
export OIDC_SOCK=<path to socket of oidc-agent>
17
+
```
18
+
19
+
One can still set the access token directly in the environmental variable 'ORCHENT_TOKEN',
20
+
this overrides the previous settings.
11
21
`ORCHENT_TOKEN`:
12
22
```
13
23
export ORCHENT_TOKEN=<your access token here>
@@ -60,16 +70,29 @@ orchent depshow one
60
70
Please make sure you have exported your access token, see above.
61
71
62
72
### Getting help
63
-
orchent provides a lot of help, the main help is shown by running `orchent help`.
73
+
orchent provides a lot of help, the main help is shown by running `orchent --help`.
Copy file name to clipboardexpand all lines: orchent.go
+68-7
Original file line number
Diff line number
Diff line change
@@ -9,6 +9,7 @@ import (
9
9
"github.com/dghubble/sling"
10
10
"github.com/zpatrick/go-config"
11
11
"gopkg.in/alecthomas/kingpin.v2"
12
+
"net"
12
13
"net/http"
13
14
"net/url"
14
15
"os"
@@ -17,10 +18,10 @@ import (
17
18
"strings"
18
19
)
19
20
20
-
constOrchentVersionstring="1.1.0"
21
+
constOrchentVersionstring="1.2.0"
21
22
22
23
var (
23
-
app=kingpin.New("orchent", "The orchestrator client. Please store your access token in the 'ORCHENT_TOKEN' environment variable: 'export ORCHENT_TOKEN=<your access token>'. If you need to specify the file containing the trusted root CAs use the 'ORCHENT_CAFILE' environment variable: 'export ORCHENT_CAFILE=<path to file containing trusted CAs>'.").Version(OrchentVersion)
24
+
app=kingpin.New("orchent", "The orchestrator client. \n\nPlease either store your access token in 'ORCHENT_TOKEN' or set the account to use with oidc-agent in the 'ORCHENT_AGENT_ACCOUNT' and the socket of the oidc-agent in the 'OIDC_SOCK' environment variable: \nexport ORCHENT_TOKEN=<your access token>\n OR \n export OIDC_SOCK=<path to the oidc-agent socket> (usually this is already exported) \n export ORCHENT_AGENT_ACCOUNT=,account to use> \nIf you need to specify the file containing the trusted root CAs use the 'ORCHENT_CAFILE' environment variable: \nexport ORCHENT_CAFILE=<path to file containing trusted CAs>\n\n").Version(OrchentVersion)
24
25
hostUrl=app.Flag("url", "the base url of the orchestrator rest interface. Alternative the environment variable 'ORCHENT_URL' can be used: 'export ORCHENT_URL=<the_url>'").Short('u').String()
0 commit comments