https://github.com/avoidwork/adobe-ims-servicetoken
Adobe IMS Service Token lifecycle management
https://github.com/avoidwork/adobe-ims-servicetoken
Last synced: 8 days ago
JSON representation
Adobe IMS Service Token lifecycle management
- Host: GitHub
- URL: https://github.com/avoidwork/adobe-ims-servicetoken
- Owner: avoidwork
- Created: 2019-02-08T15:50:46.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2024-12-02T23:59:12.000Z (about 1 year ago)
- Last Synced: 2025-08-09T01:04:42.554Z (6 months ago)
- Language: JavaScript
- Homepage: https://adobe.com
- Size: 346 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Funding: .github/FUNDING.yml
Awesome Lists containing this project
README
# adobe-ims-servicetoken
Load into your node.js application to easily manage Adobe IMS service tokens. Multiple clients and/or grant types are supported with 1.1.0!
### Configuration
#### url
IMS URL for retrieving an access token, default is `https://ims-na1.adobelogin.com/ims/token`
#### grant_type (optional)
Grant type, default is `authorization_code`; set to `''` if exchanging a `JWT`
#### client_id
IMS Client ID
#### client_secret
IMS Client Secret
#### code (required if `jwt_token` is not supplied)
IMS Client Code
#### jwt_token (required if `code` is not supplied)
JWT for Access Token exchange
### Example
```javascript
import {token as ims} from 'adobe-ims-servicetoken';
export async function token () {
let result;
try {
result = await ims({client_id: '', client_secret: '', code: ''});
} catch (e) {
console.error(e.message);
}
return result;
}
```