File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
ibm_cloud_sdk_core/token_managers Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -235,7 +235,7 @@ specify the iam_account_id property as well.
235
235
Exactly one of iam_profile_crn, iam_profile_id or iam_profile_name must be specified.
236
236
237
237
- iam_account_id: (optional) the ID associated with the IAM account that contains the trusted profile
238
- referenced by the iam_profile_name property. The imaAccountId property must be specified if and only if
238
+ referenced by the iam_profile_name property. The iam_account_id property must be specified if and only if
239
239
the iam_profile_name property is specified.
240
240
241
241
- url: (optional) The base endpoint URL of the IAM token service.
@@ -288,7 +288,7 @@ from ibm_cloud_sdk_core.authenticators import IAMAssumeAuthenticator
288
288
from < sdk- package- name> .example_service_v1 import *
289
289
290
290
# Create the authenticator.
291
- authenticator = IAMAssumeAuthenticator(' myapikey' )
291
+ authenticator = IAMAssumeAuthenticator(' myapikey' , iam_profile_id = ' my_profile_id ' )
292
292
293
293
# Construct the service instance.
294
294
service = ExampleServiceV1(authenticator = authenticator)
Original file line number Diff line number Diff line change 23
23
24
24
25
25
class IAMAssumeTokenManager (IAMRequestBasedTokenManager ):
26
- """The IAMTokenManager takes an api key and information about a trusted profile then performs the necessary
26
+ """The IAMAssumeTokenManager takes an api key and information about a trusted profile then performs the necessary
27
27
interactions with the IAM token service to obtain and store a suitable bearer token. This token "assumes" the
28
28
identity of the provided trusted profile.
29
29
@@ -32,7 +32,7 @@ class IAMAssumeTokenManager(IAMRequestBasedTokenManager):
32
32
iam_profile_crn (str): the CRN of the trusted profile
33
33
iam_profile_name (str): the name of the trusted profile (must be used together with `iam_account_id`)
34
34
iam_account_id (str): the ID of the trusted profile (must be used together with `iam_profile_name`)
35
- iam_deletgate (IAMTokenManager): an IAMTokenManager instance used to obtain the user's IAM access token
35
+ iam_delegate (IAMTokenManager): an IAMTokenManager instance used to obtain the user's IAM access token
36
36
from the `apikey`.
37
37
url (str): The IAM endpoint to token requests.
38
38
headers (dict): Default headers to be sent with every IAM token request.
You can’t perform that action at this time.
0 commit comments