Skip to content

Commit 454b032

Browse files
JWT and OAuth auths removed (#284)
* JWT and OAuth auths removed * XOR3 added * unit tests fixed * build fixed
1 parent 909d0be commit 454b032

File tree

13 files changed

+71
-369
lines changed

13 files changed

+71
-369
lines changed

README.md

Lines changed: 0 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,7 @@ Usability, consistency, and performance are key focuses of jira.js, and it also
2323
- [Usage](#usage)
2424
- [Authentication](#authentication)
2525
- [Basic](#basic-authentication)
26-
- [OAuth](#oauth)
2726
- [OAuth 2.0](#oauth-20)
28-
- [JWT](#jwt)
2927
- [Personal access token](#personal-access-token)
3028
- [Example and using algorithm](#example-and-using-algorithm)
3129
- [Decreasing Webpack bundle size](#decreasing-webpack-bundle-size)
@@ -144,24 +142,6 @@ const client = new Version3Client({
144142
});
145143
```
146144

147-
##### [OAuth](https://developer.atlassian.com/cloud/jira/platform/jira-rest-api-oauth-authentication/)
148-
149-
```typescript
150-
import { Version3Client } from 'jira.js';
151-
152-
const client = new Version3Client({
153-
host: 'https://your-domain.atlassian.net',
154-
authentication: {
155-
oauth: {
156-
consumerKey: 'your consumer key',
157-
consumerSecret: '-----BEGIN RSA PRIVATE KEY-----\n" + "some private key\n" + "-----END RSA PRIVATE KEY-----',
158-
accessToken: 'your access token',
159-
tokenSecret: 'your token secret',
160-
},
161-
},
162-
});
163-
```
164-
165145
##### [OAuth 2.0](https://developer.atlassian.com/cloud/jira/platform/oauth-2-3lo-apps/)
166146

167147
Only the authorization token is currently supported. To release it, you need to read the [documentation](https://developer.atlassian.com/cloud/jira/platform/oauth-2-3lo-apps/) and write your own code to get the token.
@@ -181,23 +161,6 @@ const client = new Version3Client({
181161
});
182162
```
183163

184-
##### [JWT](https://developer.atlassian.com/cloud/jira/platform/understanding-jwt-for-connect-apps/)
185-
186-
```typescript
187-
import { Version3Client } from 'jira.js';
188-
189-
const client = new Version3Client({
190-
host: 'https://your-domain.atlassian.net',
191-
authentication: {
192-
jwt: {
193-
issuer: 'ISSUER',
194-
secret: 'shhhh',
195-
expiryTimeSeconds: 180,
196-
},
197-
},
198-
});
199-
```
200-
201164
##### [Personal access token](https://confluence.atlassian.com/enterprise/using-personal-access-tokens-1026032365.html)
202165

203166
```typescript

0 commit comments

Comments
 (0)