Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

airmap-auth

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

airmap-auth

Authenticate users with AirMap

  • 2.0.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
22
decreased by-40.54%
Maintainers
1
Weekly downloads
 
Created
Source

AirMap Auth

npm version

Authenticate users with AirMap.

Requirements

To use the AirMap Auth Module a client_id must be generated from the AirMap Developer Portal. Additionally, a callback_url must be provided to AirMap in the Developer Portal to whitelist use of the module.

Sign up for an AirMap Developer Account

https://dashboard.airmap.io/developer

Upgrading from v1 to v2

When updating the auth module from v1 to v2, note the following parameters have been deprecated:

  • closeable (bool)
  • onAuthorizationError (func)
  • state (obj)

Install

From CDN

<!-- Latest patch release -->
<script src="https://cdn.airmap.io/js/auth/2.0.0/airmap-auth.min.js"></script>

<!-- Latest minor release -->
<script src="https://cdn.airmap.io/js/auth/v2.0/index.min.js"></script>

From bower

bower install airmap-auth
<script src="bower_components/airmap-auth/index.min.js"></script>

From npm

npm install airmap-auth

After installing the airmap-auth module, you'll need bundle it up along with all of its dependencies using a tool like webpack or browserify. If you don't have a build process in place for managing dependencies, it is recommended that you use the module via bower or the CDN.

Documentation

Generated API Documentation

Official AirMap Docs

Demo

Clone the repo and run npm install. Open the 'index.js' file in the 'examples' folder and add the config object from the AirMap Developer Portal. Then, run npm start in the command line and navigate to http://localhost:8080/.

Note: When testing the module with the provided examples, you'll want to update the callback_url with http://localhost:8080/ in the following two places:

• 'index.js' file in the config object provided to the AirMapAuth constructor

• 'Callback URL' field in the Auth0 section of the AirMap Developer Portal

As soon as the callback_urls match, you should be good to test out the Auth Module Demo.

License

See LICENSE for details.

Keywords

FAQs

Package last updated on 22 May 2018

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc