0.4.0 • Published 2 months ago
@mongodb-js/oidc-plugin v0.4.0
@mongodb-js/oidc-plugin
A plugin for the MongoDB Node.js driver to support human/browser-based OIDC authentication flows.
OIDC support is a preview feature of MongoDB and not currently recommended for production usage.
Example usage
import { MongoClient } from 'mongodb';
import { createMongoDBOIDCPlugin } from '@mongodb-js/oidc-plugin';
// All config options are optional.
const config = {
openBrowser: {
command: 'open -a "Firefox"',
},
// allowedFlows: ['auth-code', 'device-auth'], // if Device Auth Grant flow is required
};
const client = await MongoClient.connect(
'mongodb+srv://.../?authMechanism=MONGODB-OIDC',
{
...createMongoDBOIDCPlugin(config).mongoClientOptions,
}
);
// ...
See the TypeScript annotations for more API details.
0.4.0
2 months ago
0.3.1
3 months ago
0.3.0
10 months ago
0.1.0
1 year ago
0.2.1
11 months ago
0.1.2
12 months ago
0.2.0
11 months ago
0.1.1
12 months ago
0.1.0-alpha.2
1 year ago
0.2.3
11 months ago
0.1.4
12 months ago
0.2.2
11 months ago
0.1.3
12 months ago
0.1.6
11 months ago
0.2.4
11 months ago
0.1.5
12 months ago
0.1.0-alpha.1
1 year ago
0.1.0-alpha.0
1 year ago