Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
react-oauth2-pkce
Advanced tools
Authenticate against generic OAuth2 using PKCE
npm install --save react-oauth2-pkce
import React from 'react'
import { AuthProvider, AuthService } from 'react-oauth2-pkce'
import { Routes } from './Routes';
const authService = new AuthService({
clientId: process.env.REACT_APP_CLIENT_ID || 'CHANGEME',
location: window.location,
provider: process.env.REACT_APP_PROVIDER || 'https://sandbox.auth.ap-southeast-2.amazoncognito.com/oauth2',
redirectUri: process.env.REACT_APP_REDIRECT_URI || window.location.origin,
scopes: ['openid', 'profile']
});
const App = () => {
return (
<AuthProvider authService={authService} >
<Routes />
</AuthProvider>
)
}
export default App
After https://github.com/gardner/react-oauth2-pkce/pull/16 it is possible to pass in just provider
or authorizeEndpoint
and tokenEndpoint
. These two parameters were added to maintain backwards compatibility while enabling callers to customize the endpoint.
MIT © Gardner Bickford
FAQs
Authenticate against generic OAuth2 using PKCE
The npm package react-oauth2-pkce receives a total of 550 weekly downloads. As such, react-oauth2-pkce popularity was classified as not popular.
We found that react-oauth2-pkce 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
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.