Security News
New Python Packaging Proposal Aims to Solve Phantom Dependency Problem with SBOMs
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.
@descope/web-component
Advanced tools
Create your login pages on our console-app, once done, you can use this library to inject those pages to your app
it registers- a web component and update the web-component content based on the relevant page,
See usage example below
npm install @descope/web-component
import '@descope/web-component'
import { DescopeWc } // in case you need types definition or you want to use the class directly
// render a custom element, for example:
render(){
return (
<descope-wc project="myProjectId"/>
)
}
Copy the file @descope/web-js/sdk/dist/descope-wc.js
and place it where your HTML file is located
Add the following script tag to your HTML file
<head>
<script src="./my-lib.umd.production.min.js"></script>
</head>
<descope-wc project-id="<project-id>" flow-id="<flow-id>"></descope-wc>
To run the example:
pnpm i
cd packages/web-component
.env
file and the following variables:// .env
DESCOPE_PROJECT_ID=<project-id>
DESCOPE_FLOW_ID=<flow-id>
pnpm run start
NOTE: This package is a part of a monorepo. so if you make changes in a dependency, you will have to rerun npm run start
(this is a temporary solution until we improve the process to fit to monorepo).
Attribute | Available options | Default value |
---|---|---|
theme | "light" - Light theme "dark" - Dark theme "os" - Auto select a theme based on the OS theme settings | "light" |
debug | "true" - Enable debugger "false" - Disable debugger | "false" |
telemetryKey | String - Telemetry public key provided by Descope Inc | "" |
auto-focus | "true" - Automatically focus on the first input of each screen "false" - Do not automatically focus on screen's inputs "skipFirstScreen" - Automatically focus on the first input of each screen, except first screen | "true" |
FAQs
Descope WC
The npm package @descope/web-component receives a total of 10,604 weekly downloads. As such, @descope/web-component popularity was classified as popular.
We found that @descope/web-component demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.
Security News
Socket CEO Feross Aboukhadijeh discusses open source security challenges, including zero-day attacks and supply chain risks, on the Cyber Security Council podcast.
Security News
Research
Socket researchers uncover how threat actors weaponize Out-of-Band Application Security Testing (OAST) techniques across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.