Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
passport-okta-oauth20
Advanced tools
Okta OAuth 2.0 provider for Passport with TypeScript support.
npm i passport-okta-oauth20
or yarn add passport-okta-oauth20
.
import { Strategy as OktaStrategy } from 'passport-okta-oauth20';
passport.use(
new OktaStrategy(
{
audience: 'https://acme.okta.com',
clientID: 'oa6qp1vkvrgwABC12345',
clientSecret: 'qwertyA-fooBazB_DQSS-qqsQSD123',
scope: ['openid', 'email', 'profile'],
callbackURL: 'http://localhost:3000/api/auth/okta/callback',
},
function (accessToken, refreshToken, profile, done) {
return done(null, profile);
}
)
);
You can access to the profile type by importing it:
import { OktaProfile } from 'passport-okta-oauth20'
The profile given by the strategy callback is of course typed.
Example profile:
{
id: 'azerty12345890',
displayName: 'Adam Smith',
username: 'adam@smith.com',
fullName: 'Adam Smith',
familyName: 'Smith',
givenName: 'Adam',
email: 'adam@smith.com',
zoneInfo: 'America/Los_Angeles',
updatedAt: 1625319840,
emailVerified: true,
locale: 'en-US',
_raw: '{"sub":"azerty12345890", ...',
_json: Object // Raw response from Okta
}
This repository is loosely based on passport-okta-oauth.
That repository was archived a while ago, and this rewrite brings the following changes:
FAQs
An Okta OAuth 2.0 Strategy for Passport with native TypeScript support
The npm package passport-okta-oauth20 receives a total of 1,143 weekly downloads. As such, passport-okta-oauth20 popularity was classified as popular.
We found that passport-okta-oauth20 demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.