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: README.md
+18-1Lines changed: 18 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -94,6 +94,22 @@ Follow the [installation guide](https://github.com/ankitpokhrel/jira-cli/wiki/In
94
94
2. Run `jira init`, select installation type as `Cloud`, and provide required details to generate a config file required
95
95
for the tool.
96
96
97
+
#### Cloud server where PAT or OAuth is unavailable
98
+
99
+
Some tenants have disabled or restricted the ability to create personal Jira API tokens / OAuth credentials. In these cases, you can fall back to the browser session cookie `tenant.session.token`. Note that this cookie usually expires in about 24 hours, so you will need to refresh it periodically.
100
+
101
+
1. Log in to Jira with your browser. Open the developer tools (Application/Storage tab) and find the cookie value for `tenant.session.token`. Then set the environment variable `JIRA_API_TOKEN` to that value.
@@ -119,9 +135,10 @@ See [FAQs](https://github.com/ankitpokhrel/jira-cli/discussions/categories/faqs)
119
135
120
136
#### Authentication types
121
137
122
-
The tool supports `basic`, `bearer` (Personal Access Token), and `mtls` (Client Certificates) authentication types. Basic auth is used by
138
+
The tool supports `basic`, `cookie` (browser session), `bearer` (Personal Access Token), and `mtls` (Client Certificates) authentication types. Basic auth is used by
123
139
default.
124
140
141
+
* If you want to use a browser session cookie, set `--auth-type cookie` (or `JIRA_AUTH_TYPE=cookie`) and set `JIRA_API_TOKEN` to the value of `tenant.session.token`.
125
142
* If you want to use PAT, you need to set `JIRA_AUTH_TYPE` as `bearer`.
126
143
* If you want to use `mtls` run `jira init`. Select installation type `Local`, and then select authentication type as `mtls`.
127
144
* In case `JIRA_API_TOKEN` variable is set it will be used together with `mtls`.
0 commit comments