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

eso-library-for-cordova

v1.0.0

Published

### Assumes working knowledge of Cordova and Git

Downloads

1

Readme

ESO Plugin Integration guide

Assumes working knowledge of Cordova and Git

Requirements

  • The existing project must be target Android API 18+ and iOS8+
  • Must be using Cordova Android 4.0.2 or higher
  • Must be using Cordova iOS 3.8.0 or higher

Steps to add plugin

  1. Add Plugin to existing cordova project by calling Cordova plugin add https://innersource.accenture.com/cio-security-architecture/eso-library-for-cordova.git
  2. Update java script to call SSO plugin
    • clientId, clientSecret, callbackUri are all strings. The Uri should not be escaped.
    • clientScopes is an array of strings.
    • Production flag is a Boolean (true/false)
	sso.getToken(function(token) {
					//handle token
                }, function(error) {
					//handle error
                }, [CLIENT ID], [CLIENT SECRET], [Array of client scopes], [Callback URI],[ Production flag]);

Please note that this plugin makes a network call to validate the token, so do not call it every time you need a token. The token should be cached in memory and this plugin called on application launch and whenever you receive a 401 HTTP error.

Click here to see sample application one and sample application two

To obtain a clientId, clientSecret, callbackURI and scopes for your services click this link and fill out the forms.

CI

iOS

There is an occasional issue with the hook not triggering with the plugin (we are working on it) but to ensure no issues add the following steps to your CI…

rm plugin
rm platform
add platform
add plugin

or

  • Please ensure you are not adding and/or removing platforms inside the CI job
  • Please ensure you are not adding and/or removing plugins inside the CI job

ESO Plugin Maintenance guide

How to update staging and production URLs

iOS

  1. Checkout Plugin InnerSource Repo into [directory] using git
  2. Open [directory]/src/ios/SSOHelper.m
  3. There you will see
NSString* const SSO_AUTORIZATION_CODE_URI_STAGING = @"https://federation-sts-stage.accenture.com/oauth/ls/connect/authorize";
NSString* const SSO_TOKEN_REQUEST_URI_STAGING = @"https://federation-sts-stage.accenture.com/oauth/ls/connect/token";
NSString* const SSO_TOKEN_VALIDATION_URI_STAGING = @"https://federation-sts-stage.accenture.com/oauth/ls/connect/accesstokenvalidation";

NSString* const SSO_AUTORIZATION_CODE_URI_PRODUCTION = @"https://federation-sts.accenture.com/oauth/ls/connect/authorize";
NSString* const SSO_TOKEN_REQUEST_URI_PRODUCTION = @"https://federation-sts.accenture.com/oauth/ls/connect/token";
NSString* const SSO_TOKEN_VALIDATION_URI_PRODUCTION = @"https://federation-sts.accenture.com/oauth/ls/connect/accesstokenvalidation";
  1. Update them to the desired values
  2. Commit them using git and push them to the origin (innersource)

Android

  1. Checkout Plugin InnerSource Repo into [directory] using git
  2. Open [directory]/src/ios/SSOHelper.m
  3. There you will see
NSString* const SSO_AUTORIZATION_CODE_URI_STAGING = @"https://federation-sts-stage.accenture.com/oauth/ls/connect/authorize";
NSString* const SSO_TOKEN_REQUEST_URI_STAGING = @"https://federation-sts-stage.accenture.com/oauth/ls/connect/token";
NSString* const SSO_TOKEN_VALIDATION_URI_STAGING = @"https://federation-sts-stage.accenture.com/oauth/ls/connect/accesstokenvalidation";

NSString* const SSO_AUTORIZATION_CODE_URI_PRODUCTION = @"https://federation-sts.accenture.com/oauth/ls/connect/authorize";
NSString* const SSO_TOKEN_REQUEST_URI_PRODUCTION = @"https://federation-sts.accenture.com/oauth/ls/connect/token";
NSString* const SSO_TOKEN_VALIDATION_URI_PRODUCTION = @"https://federation-sts.accenture.com/oauth/ls/connect/accesstokenvalidation";
  1. Update them to the desired values
  2. Commit them using git and push them to the origin (innersource)

After you make changes

Update plugin version

  1. Checkout Plugin InnerSource Repo into [directory] using git
  2. Open [directory]/plugin.xml
  3. There you will see
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
	xmlns:android="http://schemas.android.com/apk/res/android"
	id="com.accenture.cordova.plugin.sso"
	version="1.0.0">
  1. Update version="1.0.0" to desired value.
  2. Commit them using git and push them to the origin (innersource)
  3. Update sample applications following integration steps from plugin readme.md
  4. Then push updated sample applications using git