npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

cyberuskey-widget

v0.0.25

Published

Cyberus Key Widget is a button that help you to integrate with Cyberus Key Authentication Server.

Downloads

33

Readme

What is Cyberus Key?

Your users will never need to remember or input a password again with Cyberus Key, our one-touch universal, user authentication system.

Now you can guarantee your customers the highest level of protection against phishing attacks, identity and data theft,and more. By removing the risk of stolen passwords or credentials, you can eliminate one of the biggest cyber security threats..

Cyberus Key Widget

Cyberus Key Widget is a button that help you to integrate with Cyberus Key Authentication Server. After clicking the button an OpenID's authentication proccess will be started.

How to install?

With NPM:

npm install cyberuskey-widget

With Yarn:

yarn add cyberuskey-widget

You can also get a minified file from JSDelivr's CDN (replace the VERSION with the version you want to):

<script src="https://cdn.jsdelivr.net/npm/cyberuskey-widget@{VERSION}/dist/widget.min.js" type="text/javascript"></script>

<script type="text/javascript">
  var CyberusKeyWidgetNamespace = window['cyberuskey-widget'];
  var CyberusKeyWidget = CyberusKeyWidgetNamespace.CyberusKeyWidget;

  new CyberusKeyWidget(/* ... */);
</script>

And then you can embed the button on your web page:

import { CyberusKeyWidget, HTML5GeoProvider } from "cyberuskey-widget";

$(document).ready(() => {
const ckButton = new CyberusKeyWidget({
  clientId: window.CyberusKey.CLIENT_ID,
  redirectUri: window.CyberusKey.REDIRECT_URI,
  fullOpenIdLogin: true,
  state: window.CyberusKey.STATE,
  nonce: window.CyberusKey.NONCE
});

cyberusKeyButton.create('cyberus-key-widget-container');
});

If fullOpenIdLogin is true, then a user will be redirected to cyberuskey.com to process the login. This is the recommended configuration. If it’s false, the login process is done only on your side and you will have to e.g. handle errors.

Documentation

Widget uses Cyberus Key JavaScript SDK, here you have the documentation.

Classes

WidgetOptions

Kind: global class

new WidgetOptions()

WidgetOptions.theme : string

Kind: static property of WidgetOptions

WidgetOptions.serverUrl : string

Kind: static property of WidgetOptions

WidgetOptions.animation : WidgetAnimation

Kind: static property of WidgetOptions

WidgetOptions.geoProvider : GeoProvider

Kind: static property of WidgetOptions

WidgetOptions.state : string

Kind: static property of WidgetOptions

WidgetOptions.nonce : string

Kind: static property of WidgetOptions

WidgetOptions.responseType : string

Kind: static property of WidgetOptions

WidgetOptions.autoplay : boolean

Kind: static property of WidgetOptions

WidgetOptions.instructionAsDialog : boolean

Kind: static property of WidgetOptions

WidgetOptions.fullOpenIdLogin : boolean

Kind: static property of WidgetOptions

CyberusKeyWidget

Kind: global class

new CyberusKeyWidget()

$(document).ready(() => { const ckButton = new CyberusKeyWidget({ clientId: window.CyberusKey.CLIENT_ID, redirectUri: window.CyberusKey.REDIRECT_URI, fullOpenIdLogin: true, state: window.CyberusKey.STATE, nonce: window.CyberusKey.NONCE });

cyberusKeyButton.create('cyberus-key-widget-container'); });

If fullOpenIdLogin is true, then a user will be redirected to cyberuskey.com to process the login. This is the recommended configuration. If it’s false, the login process is done only on your side and you will have to e.g. handle errors.

cyberusKeyWidget.create(containingElementClassName)

Kind: instance method of CyberusKeyWidget

| Param | Type | Description | | --- | --- | --- | | containingElementClassName | string | CSS class name of the containing DOM element for the Cyberus Key Widget. |

CyberusKeyWidget.CyberusKeyWidget

Kind: static class of CyberusKeyWidget

new CyberusKeyWidget(options)

| Param | Type | | --- | --- | | options | WidgetOptions |

WidgetAnimation : enum

Kind: global enum
Read only: true

Links

CyberusKey JavaScript SDK docs: https://github.com/CyberusLabs/cyberuskey-sdk/

License

MIT © Cyberus Labs sp. z o.o.