
Security News
The Hidden Blast Radius of the Axios Compromise
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.
@osuresearch/auth
Advanced tools
React components for authentication and authorization
A backend API is required for user session handling.
For internal developers, these APIs are already provided with our GraphQL and REST application templates.
GitHub documentation is a work in progress.
npm install @osuresearch/auth
Wrap your main app with an AuthProvider to automatically handle session expirations:
import {
AuthProvider,
GraphQL,
Profile
} from '@osuresearch/auth';
function App() {
return (
<AuthProvider driver={GraphQL()}>
<header>
...
</header>
<main>
...
</main>
</AuthProvider>
);
}
The useIdentity hook can then be used to provide logged in user information and the <Can> component can test for permissions:
import { useIdentity, Can } from '@osuresearch/auth';
function MyComponent() {
const { user } = useIdentity();
return (
<div>
<p>Hello {user.name}</p>
<Can do="my-app.read-reports">
<Link to="/reports">Read reports</Link>
</Can>
</div>
);
}
For more comprehensive examples, see the wiki.
Since local development does not have Shibboleth SSO installed - you need to perform some extra work to test a forced logout state for your application.
.htaccess file - add the below rule immediately following the RewriteCond for API requests and before any other RewriteRules:# Fake a Shibboleth session timeout on API requests.
RedirectMatch ^ "https://webauth.service.ohio-state.edu/idp/profile/SAML2/Redirect/SSO?SAMLRequest=BadRequest"
The changelog can be found on the Releases page.
Changes prior to 3.2 can be found in CHANGELOG.md.
Chase McManning and contributors.
MIT License, see the included LICENSE file.
FAQs
React components for authentication and authorization
We found that @osuresearch/auth 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
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.