Skip to content

Commit 8d6ce78

Browse files
committed
add OAuth1.0 authentication to README
1 parent 88ae03f commit 8d6ce78

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,22 @@ const client = new Client({
111111
});
112112
```
113113

114+
### OAuth1.0 authentication
115+
116+
```js
117+
const client = new Client({
118+
host: "https://jira.somehost.com",
119+
authentication: {
120+
oauth1: {
121+
consumerKey: "your consumer key",
122+
consumerSecret: "-----BEGIN RSA PRIVATE KEY-----\n" + "some private key\n" + "-----END RSA PRIVATE KEY-----",
123+
accessToken: "your access token",
124+
tokenSecret: "your token secret"
125+
}
126+
}
127+
});
128+
```
129+
114130
### OAuth2.0 authentication
115131

116132
```js

0 commit comments

Comments
 (0)