![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
koa-azuread-jwt
Advanced tools
Handles fetching and caching of Azure AD validation certficates.
Though this module is basically functional it's still in development and has not been heavily tested or vetted.
let kao = require('koa')
let azureadJWT = require('koa-azuread-jwt')
let app = koa()
app.use(azureadJWT('tentantidstring', 'appliationidstring')
app.use(function *() {
this.status = 200
})
app.listen(3000)
koa-azuread-jwt(<string>tentantId, <string>applicationId) returns a generator to be used as koa middleware
Cert cache attempts to refresh when a legitimate looking cert without and signing cert in the cache is requested. Or when a call is made and the cert cache has exceed the refresh interval. The refresh interval is currently 24 hours.
Certificates are currently pulled directly from https://login.windows.net/common/discovery/keys. This will change in the future to use the tenant oauth discovery.
The test current just loads a koa server and allows requests with JWT to be sent and validated or rejected.
Tokens can be passed either in the authorizatin header or the query (eg. ?jwt=encoded_jwt), if found in both the authorization header will be preferred.
A basic prevalidation is performed on the jwt before the actual jwt verification with the cert is completed. This is to avoid refreshing the cache when an invalid it token is sent.
If an invalid JWT is found a 401 is returned and next will not be called.
FAQs
Azure AD JWT Validation Middleware for Koa
The npm package koa-azuread-jwt receives a total of 2 weekly downloads. As such, koa-azuread-jwt popularity was classified as not popular.
We found that koa-azuread-jwt 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
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.