adobe / adobe/spacecat-shared

Provide client specific scope,grant_type and empty secret code options to get IMS token in the spacecat-shared-ims-client package

Open
#174 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
JavaScript
Stars
5
Forks
2
Avg merge
19h 55m
Merged PRs (30d)
33

Description

**Is your feature request related to a problem? Please describe.**
Right now the function getServiceAccessToken() does not have options to send different grant_type, scope and no client_code, which we need for Adobe Analytics API access.

**Describe the solution you'd like**
The function getServiceAccessToken at https://github.com/adobe/spacecat-shared/blob/3130218762e469cae6b613f1593830b096bc0f52/packages/spacecat-shared-ims-client/src/clients/ims-client.js#L183 should support to pass user specific scope, grant_type and no code.

**Describe alternatives you've considered**
May be an override function to getServiceAccessToken, where user can pass scope and grant_type and node client_code.

**Additional context**
Add any other context or screenshots about the feature request here.

Contributor guide

Open the contributing guide

Research direction

Start in packages/spacecat-shared-ims-client/src/clients/ims-client.js at getServiceAccessToken around line 183, and inspect how its current token request is assembled. The change is complete when callers can provide a scope and grant_type and request a token without a client_code for Adobe Analytics API access.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
api, authentication
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.