Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
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 3 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.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.