Skip to content

Commit f152f2f

Browse files
Support oauth profile type (#1257)
* feat: add OAuth support for credential configuration and management * feat: add OAuth credential support in configuration list * fix: correct environment variable name for ExternalId retrieval * feat: enhance OAuth flow tests with concurrency safety
1 parent 9ce2939 commit f152f2f

16 files changed

+2285
-11
lines changed

README.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,27 @@ Default Language [zh|en] en:
246246
Saving profile[oidc_p] ...Done.
247247
```
248248

249+
250+
### Use OAuth to get credentials
251+
252+
You can use the `--mode OAuth` to obtain credentials through OAuth-based SSO role assumption. An example is as follows:
253+
254+
```shell
255+
$ aliyun configure --mode OAuth --profile oauth_p
256+
Configuring profile 'oauth-intl' in 'OAuth' authenticate mode...
257+
OAuth Site Type (CN: 0 or INTL: 1, default: CN):
258+
1
259+
Please open the following URL in your browser to authorize:
260+
https://signin.alibabacloud.com/oauth2/v1/auth?response_type=code&client_id=xxxx
261+
如果浏览器没有自动打开,请使用以下URL完成登录过程:
262+
263+
登录URL: https://signin.alibabacloud.com/oauth2/v1/auth?response_type=code&client_id=xxxx
264+
265+
现在您可以在浏览器中使用OAuth配置登录您的账户。
266+
OAuth configuration completed. The temporary Access Key Id and Access Key Secret have been set in the profile.
267+
Default Region Id []:
268+
```
269+
249270
### Use CloudSSO to get credentials
250271

251272
You can use the `--mode CloudSSO` to obtain credentials through CloudSSO. An example is as follows:

0 commit comments

Comments
 (0)