Sha256: 5482d2c56e62c54e095ac0fd4e2290619cd5d98a7c895485ef5c998958e5c0c3

Contents?: true

Size: 772 Bytes

Versions: 25

Compression:

Stored size: 772 Bytes

Contents

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const issuer_1 = require("./issuer");
const oauth_1 = require("./oauth");
/**
 * oauthProvider returns a new Provider instance which attempts to retrieve
 * an identity token from the configured OAuth2 issuer.
 *
 * @param issuer Base URL of the issuer
 * @param clientID Client ID for the issuer
 * @param clientSecret Client secret for the issuer (optional)
 * @returns {IdentityProvider}
 */
function oauthProvider(options) {
    return new oauth_1.OAuthProvider({
        issuer: new issuer_1.Issuer(options.issuer),
        clientID: options.clientID,
        clientSecret: options.clientSecret,
        redirectURL: options.redirectURL,
    });
}
exports.default = {
    oauthProvider,
};

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
immosquare-cleaner-0.1.52 node_modules/sigstore/dist/identity/index.js
immosquare-cleaner-0.1.51 node_modules/sigstore/dist/identity/index.js
immosquare-cleaner-0.1.50 node_modules/sigstore/dist/identity/index.js
immosquare-cleaner-0.1.49 node_modules/sigstore/dist/identity/index.js
immosquare-cleaner-0.1.48 node_modules/sigstore/dist/identity/index.js
immosquare-cleaner-0.1.47 node_modules/sigstore/dist/identity/index.js
immosquare-cleaner-0.1.46 node_modules/sigstore/dist/identity/index.js
immosquare-cleaner-0.1.45 node_modules/sigstore/dist/identity/index.js
immosquare-cleaner-0.1.44 node_modules/sigstore/dist/identity/index.js
immosquare-cleaner-0.1.43 node_modules/sigstore/dist/identity/index.js
immosquare-cleaner-0.1.42 node_modules/sigstore/dist/identity/index.js
immosquare-cleaner-0.1.41 node_modules/sigstore/dist/identity/index.js
immosquare-cleaner-0.1.40 node_modules/sigstore/dist/identity/index.js
immosquare-cleaner-0.1.39 node_modules/sigstore/dist/identity/index.js
immosquare-cleaner-0.1.38 node_modules/sigstore/dist/identity/index.js
immosquare-cleaner-0.1.32 node_modules/sigstore/dist/identity/index.js
immosquare-cleaner-0.1.31 node_modules/sigstore/dist/identity/index.js
immosquare-cleaner-0.1.30 node_modules/sigstore/dist/identity/index.js
immosquare-cleaner-0.1.29 node_modules/sigstore/dist/identity/index.js
immosquare-cleaner-0.1.28 node_modules/sigstore/dist/identity/index.js