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
feat: support using a remote HSM or JWT signing service in lieu of private keys (#712)
To enable the use of Azure Key Vault keys, or other HSMs, this allows for a callback to be provided in lieu of a GitHub App's private certificate.
Part of octokit/octokit.js#2623
// Retrieve JSON Web Token (JWT) to authenticate as app
130
+
constappAuthentication=awaitauth({ type:"app" });
131
+
```
132
+
133
+
resolves with
134
+
135
+
```json
136
+
{
137
+
"type": "app",
138
+
"token": "jsonwebtoken123",
139
+
"appId": 123,
140
+
"expiresAt": "2018-07-07T00:09:30.000Z"
141
+
}
142
+
```
143
+
110
144
### Authenticate as OAuth App (client ID/client secret)
111
145
112
146
The [OAuth Application APIs](https://docs.github.com/en/rest/reference/apps#oauth-applications-api) require the app to authenticate using clientID/client as Basic Authentication
<strong>Required</strong>. Content of the <code>*.pem</code> file you downloaded from the app’s about page. You can generate a new private key if needed. If your private key contains escaped newlines (`\\n`), they will be automatically replaced with actual newlines.
374
+
<strong>Typically required</strong>. Content of the <code>*.pem</code> file you downloaded from the app’s about page. You can generate a new private key if needed. If your private key contains escaped newlines (`\\n`), they will be automatically replaced with actual newlines. Not required when using an external JWT signing service.
341
375
</td>
342
376
</tr>
343
377
<tr>
@@ -479,7 +513,7 @@ Authenticate as the GitHub app to list installations, repositories, and create i
479
513
<code>string</code>
480
514
</th>
481
515
<td>
482
-
<strong>Required</strong>. Must be either <code>"app"</code>.
516
+
<strong>Required</strong>. Must be <code>"app"</code>.
0 commit comments