
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
@davidzemon/passport-okta-oauth
Advanced tools
Passport strategy for authenticating with Okta using OAuth 2.0.
Passport strategies for authenticating with Okta using OAuth 2.0.
passport.use(new OktaStrategy({
audience: process.env.OKTA_AUDIENCE,
// audience is the Okta Domain,
// e.g. https://example.okta.com, https://example.oktapreview.com
clientID: process.env.OKTA_CLIENTID,
// clientID is the public Okta Application Client Credentials,
// its a 20 character alphanumeric string
// e.g. U7VYvsaiuqlDOHjIVTIA (generated example)
clientSecret: process.env.OKTA_CLIENTSECRET,
// clientSecret is the private Okta Application Client Credentials,
// its a 40 character alphanumeric string with a hypen(s).
// e.g. Vwb-R4fQnSH7uJkokDhPI-WR4qEiuWFokYANM5C (generated example)
idp: process.env.OKTA_IDP,
// idp is the Identity Provider (id). This is an optional field
// its a 20 character alphanumeric string
// e.g. qOp8aaJmCEhvep5Il6ZJ (generated example)
scope: ['openid', 'email', 'profile'],
response_type: 'code',
callbackURL: baseURL + "/auth/okta/callback"
// callbackURL is the redirect URL Okta should return the user to
// This is a URL on your server
}, function(accessToken, refreshToken, profile, done) {
// Example Callback to Handle the Profile Object
return profile
}));
profile = {
provider: 'okta-social',
name: {
fullName: 'John Smith',
familyName: 'Smith',
givenName: 'John'
},
emails: [{value: 'john.smith@example.com'}],
_raw: "\{...\}"
_json: {...}
}
FAQs
Passport strategy for authenticating with Okta using OAuth 2.0.
The npm package @davidzemon/passport-okta-oauth receives a total of 45,609 weekly downloads. As such, @davidzemon/passport-okta-oauth popularity was classified as popular.
We found that @davidzemon/passport-okta-oauth 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
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.