egg-oss-sts

1.0.0 • Public • Published

egg-oss-sts

Egg's plugin for STS (Security Token Service) supported.

Usage

config/plugin.js

exports.sts = {
  enabled: true,
  package: 'egg-oss-sts'
}

config/config.default.js

exports.sts = {
  client: {
    accessKeyId: 'your access key id',
    accessKeySecret: 'your access key secret'
  }
}

app/service/xxxx.js

const token = yield app.sts.assumeRole(
  '<role-arn>',
  '<policy>',
  '<expire>',
  '<session-name>'
)

Readme

Keywords

none

Package Sidebar

Install

npm i egg-oss-sts

Weekly Downloads

0

Version

1.0.0

License

ISC

Last publish

Collaborators

  • xueseason