Core interfaces for authorization


1.0.05 years ago5 years agoMinified + gzip package size for @athenz/auth-core in KB



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'


Licensed under the Apache License, Version 2.0

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.