
Product
Introducing Pull Request Stories to Help Security Teams Track Supply Chain Risks
Socket’s new Pull Request Stories give security teams clear visibility into dependency risks and outcomes across scanned pull requests.
ado-ng-auth
Advanced tools
Set the environment variables in your angular application:
(function () {
'use strict';
angular.module('YourApp')
.config(['envServiceProvider', 'adoAuthConfig', function(envServiceProvider, adoAuthConfig) {
// set the domains and variables for each environment
envServiceProvider.config({
domains: {
development: ['localhost', '127.0.0.1'],
production: ['*.yourdmain.com'],
//test: ['test.acme.com', 'acme.dev.test', 'acme.*.com'],
// anotherStage: ['domain1', 'domain2']
},
vars: {
development: {
prod: false,
apiBaseUrl: 'http://localhost:8000',
recaptcha_public_key: '6LcjW28UAAAAADaLbROztkzHAqPTzmFhtwVwNiVu'
},
production: {
prod: true,
apiBaseUrl: 'https://adopisowifi.herokuapp.com',
recaptcha_public_key: '6LchBGYUAAAAANWc6a-Xp6hkptv9alGEQNVY1vPQ'
},
// anotherStage: {
// customVar: 'lorem',
// customVar: 'ipsum'
// },
defaults: {
prod: false,
apiBaseUrl: 'https://localhost:8000',
}
}
});
envServiceProvider.check();
// default config
var defaultConfig = {
cors: true,
loginSuccessRedirectState: 'dashboard.home', // where to redirect after successfull login
registrationPath: '#!/register', // where to redirect after account confirmation
unauthorizedEventName: 'ado:auth:401'
};
adoAuthConfig.set(defaultConfig);
// run the environment check, so the comprobation is made
// before controllers and services are built
}]);
})();
FAQs
Ado Angular.js 1.x Frontend Auth Module
The npm package ado-ng-auth receives a total of 2 weekly downloads. As such, ado-ng-auth popularity was classified as not popular.
We found that ado-ng-auth demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.
Product
Socket’s new Pull Request Stories give security teams clear visibility into dependency risks and outcomes across scanned pull requests.
Research
/Security News
npm author Qix’s account was compromised, with malicious versions of popular packages like chalk-template, color-convert, and strip-ansi published.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.