This module provides a simple interface to Eve Online's Single Sign-On oAuth process. Requested access tokens can then be used to authenticate an Eve character or to access the RESTful CREST API.
npm install eve-singlesignon --save
In order to use Single Sign-On feature, you first need to create a new application in the developer section.
This will give you the required client ID and secret. You will need to give the redirect (or callback) URL, the URL where the client will be redirected to after logging in (this is the /sso_callback in the example below).
getAccessToken()with a refresh token)
This is an incomplete and minimalistic example of how to use the most basic functionality. Refer to the source code for further inline documentation.
;;const app = ;// Here you can provide the required parametersconst CLIENT_ID = 'client_id';const SECRET_KEY = 'secret_key';const CALLBACK_URL = '';// Create a new instance with the set parametersconst sso = CLIENT_ID SECRET_KEY CALLBACK_URL;// Refer the client to the Eve Online SSO login screen on loginapp;// This is the callback that is called when the client has logged inapp
simplerequest option to
Copyright 2016 Michiel van der Velde.
This software is licensed under the MIT License