adobe / adobe/aio-cli-plugin-cloudmanager
AccessToken is always stored in global config below the IMS context
- Ngôn ngữ chính
- JavaScript
- Star
- 50
- Fork
- 36
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
When using a local `.aio` config file similar to what is outlined in https://github.com/adobe/aio-cli-plugin-cloudmanager?tab=readme-ov-file#setup-for-oauth-integration with `aio config:set ims.contexts.aio-cli-plugin-cloudmanager PATH_TO_CONFIG_JSON_FILE --file --json --local` I expect that the accessToken which is retrieved is also stored locally, however this is persisted in the global aio config due to https://github.com/adobe/aio-lib-ims/issues/67 like this.
```
ims: {
contexts: {
aio-cli-plugin-cloudmanager: {
...
// duplicated service credentials from the local .aoi file
...
access_token: {
token: ",
expiry: ...
}
},
```
In order to be able to easily switch between different credentials/organization just using the local AIO config (https://github.com/adobe/aio-lib-core-config/tree/master?tab=readme-ov-file#project-configuration) is not enough. Instead one currently has to use dedicated/unique IMS context names and always pass that via `imsContextName` to each `aio cloudmanager` command as workaround.
Please document that limitation in the readme and try to fix the upstream bug in https://github.com/adobe/aio-lib-ims/issues/67.
Hướng dẫn đóng góp
Hướng nghiên cứu
Bắt đầu với phần thiết lập trong README được liên kết trong issue và tái hiện cấu hình `.aio` cục bộ với ngữ cảnh Cloud Manager IMS. Xem xét issue upstream #67 của `aio-lib-ims` để hiểu cơ chế lưu persist token toàn cục, sau đó ghi lại giới hạn và xác định upstream fix cần thiết; được xem là hoàn tất khi thông tin xác thực cục bộ không còn được persist trên toàn cục hoặc giới hạn này được ghi rõ.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- javascript
- Lĩnh vực
- cli
- Loại issue
- Lỗi
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Cần làm rõ
- Mức phù hợp với người mới
- 25/100