Skip to content

Commit

Permalink
refactor!: Issuer.prototype.keystore is now private API
Browse files Browse the repository at this point in the history
  • Loading branch information
panva committed Oct 27, 2021
1 parent 83376ac commit 0c23248
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 20 deletions.
10 changes: 0 additions & 10 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ If you or your business use openid-client, please consider becoming a [sponsor][
- [issuer.Client](#issuerclient)
- [issuer.FAPIClient](#issuerfapiclient)
- [issuer.metadata](#issuermetadata)
- [issuer.keystore([forceReload])](#issuerkeystoreforcereload)
- [Issuer.discover(issuer)](#issuerdiscoverissuer)
- [Issuer.webfinger(input)](#issuerwebfingerinput)
<!-- TOC Issuer END -->
Expand Down Expand Up @@ -111,15 +110,6 @@ Returns metadata from the issuer's discovery document.

---

#### `issuer.keystore([forceReload])`

Returns the issuer's `jwks_uri` keys as a [`jose`][jose] parsed JWKS.Keystore.

- `forceReload`: `<boolean>` forces a reload of the issuer's jwks_uri. **Default:** 'false'
- Returns: `Promise<jose.JWKS.KeyStore>`

---

#### `Issuer.discover(issuer)`

Loads OpenID Connect 1.0 and/or OAuth 2.0 Authorization Server Metadata documents. When the
Expand Down
2 changes: 1 addition & 1 deletion lib/issuer.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ class Issuer {

/**
* @name keystore
* @api public
* @api private
*/
async keystore(reload = false) {
assertIssuerConfiguration(this, 'jwks_uri');
Expand Down
6 changes: 0 additions & 6 deletions types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -666,12 +666,6 @@ export class Issuer<TClient extends Client> {
metadata: IssuerMetadata;
[custom.http_options]: CustomHttpOptionsProvider;

/**
* Returns the issuer's jwks_uri keys as a `jose` parsed JWKS.Keystore.
* @param forceReload forces a reload of the issuer's jwks_uri
*/
keystore(forceReload?: boolean): Promise<jose.JWKS.KeyStore>;

/**
* Loads OpenID Connect 1.0 and/or OAuth 2.0 Authorization Server Metadata documents.
* When the issuer argument contains '.well-known' only that document is loaded, otherwise
Expand Down
3 changes: 0 additions & 3 deletions types/openid-client-tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@ async (req: IncomingMessage) => {
let issuer = await Issuer.discover('https://accounts.google.com');
console.log('Discovered issuer %O', issuer.metadata.issuer);

issuer.keystore();
issuer.keystore(true);

//
issuer = new Issuer({
issuer: 'https://accounts.google.com',
Expand Down

0 comments on commit 0c23248

Please sign in to comment.