
Security News
CISA Kills Off RSS Feeds for KEVs and Cyber Alerts
CISA is discontinuing official RSS support for KEV and cybersecurity alerts, shifting updates to email and social media, disrupting automation workflows.
@jeswr/css-auth-utils
Advanced tools
This is a temporary library for logging into the Community Solid Server using [client credentials](https://communitysolidserver.github.io/CommunitySolidServer/5.x/usage/client-credentials/).
This is a temporary library for logging into the Community Solid Server using client credentials.
import { getAuthenticatedFetch } from '@jeswr/css-auth-utils';
const fetch = getAuthenticatedFetch({
podName: 'example',
email: 'hello@example.com',
password: 'abc123',
url: 'http://localhost:3002/'
})
In some testing use cases we wish to follow the browser login flow, but mock the user interaction with the browser. This can be achieved using the cssRedirectFactory
which fills in the email and password and completes the user flow with the CSS using puppeteer.
Generally this should only be used when testing browser login flows in e2e tests.
import { cssRedirectFactory } from '@jeswr/css-auth-utils';
await session.login({
oidcIssuer: 'http://localhost:3000/',
redirectUrl: 'http://localhost:3001/',
handleRedirect: cssRedirectFactory('hello@example.com', 'abc123')
});
If you just wish to get the session, and don't need to control the server for redirect URLs then you can do:
import { getSessionFromBrowserLogin } from '@jeswr/css-auth-utils';
const session = await getSessionFromBrowserLogin({
email: 'hello@example.com',
password: 'abc123',
oidcIssuer: 'http://localhost:3000/',
});
import { essRedirectFactory } from '@jeswr/css-auth-utils';
await session.login({
oidcIssuer: 'https://login.inrupt.com/',
redirectUrl: 'http://localhost:3001/',
handleRedirect: cssRedirectFactory('myUsername', 'abc123')
});
import { getSessionFromBrowserLogin, essRedirectFactory } from '@jeswr/css-auth-utils';
const session = await getSessionFromBrowserLogin({
oidcIssuer: 'https://login.inrupt.com/',
email: 'myUsername',
password: 'abc123',
redirectFactory: essRedirectFactory
});
©2023–present Jesse Wright, MIT License.
FAQs
This is a temporary library for logging into the Community Solid Server using [client credentials](https://communitysolidserver.github.io/CommunitySolidServer/5.x/usage/client-credentials/).
The npm package @jeswr/css-auth-utils receives a total of 513 weekly downloads. As such, @jeswr/css-auth-utils popularity was classified as not popular.
We found that @jeswr/css-auth-utils 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
CISA is discontinuing official RSS support for KEV and cybersecurity alerts, shifting updates to email and social media, disrupting automation workflows.
Security News
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.
Research
Security News
Socket uncovers an npm Trojan stealing crypto wallets and BullX credentials via obfuscated code and Telegram exfiltration.