1.0.0 • Published 7 years ago

@athenz/auth-core v1.0.0

Weekly downloads
41
License
Apache-2.0
Repository
github
Last release
7 years ago

auth-core

Core interfaces for authorization

--- Customizing configuration settings ---

The application can change these values by adding a following configuration file, and the file should be a module which exports a function returns the configuration object

File path:

process.cwd() + '/config/config.js'

Configuration object:

module.exports = function() {
  return {
    principalIpCheckMode: 'OPS_WRITE',
    principalTokenAllowedOffset: '300',
    principalUserDomain: 'user',
    principalHeader: 'Athenz-Principal-Auth',
    tokenMaxExpiry: String(30 * 24 * 60 * 60),
    tokenNoExpiry: true,
    loglebel: 'debug'
  };
};

License

Licensed under the Apache License, Version 2.0

1.0.0

7 years ago