Skip to content

Commit 58d6604

Browse files
committed
Public AssumeRole AssumeRoleWithSAML AssumeRoleWithOIDC for supporting sourceIdentity.
1 parent ef59bcf commit 58d6604

File tree

8 files changed

+20
-12
lines changed

8 files changed

+20
-12
lines changed

aliyun-python-sdk-sts/ChangeLog.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2025-06-30 Version: 3.1.3
2+
- Public AssumeRole AssumeRoleWithSAML AssumeRoleWithOIDC for supporting sourceIdentity.
3+
14
2023-10-11 Version: 3.1.2
25
- Publish AssumeRoleWithOIDC API by adding more detail in response.
36

aliyun-python-sdk-sts/README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Aliyun Python SDK is the official software development kit. It makes things easy
88

99
This module works on Python versions:
1010

11-
2.6.5 and greater
11+
3.7 and greater
1212

1313
**Documentation:**
1414

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '3.1.2'
1+
__version__ = '3.1.3'

aliyun-python-sdk-sts/aliyunsdksts/request/v20150401/AssumeRoleRequest.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
class AssumeRoleRequest(RpcRequest):
2424

2525
def __init__(self):
26-
RpcRequest.__init__(self, 'Sts', '2015-04-01', 'AssumeRole')
26+
RpcRequest.__init__(self, 'Sts', '2015-04-01', 'AssumeRole','sts')
2727
self.set_protocol_type('https')
2828
self.set_method('POST')
2929

@@ -37,6 +37,11 @@ def get_ExternalId(self): # String
3737

3838
def set_ExternalId(self, ExternalId): # String
3939
self.add_query_param('ExternalId', ExternalId)
40+
def get_SourceIdentity(self): # String
41+
return self.get_query_params().get('SourceIdentity')
42+
43+
def set_SourceIdentity(self, SourceIdentity): # String
44+
self.add_query_param('SourceIdentity', SourceIdentity)
4045
def get_RoleSessionName(self): # String
4146
return self.get_query_params().get('RoleSessionName')
4247

aliyun-python-sdk-sts/aliyunsdksts/request/v20150401/AssumeRoleWithOIDCRequest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
class AssumeRoleWithOIDCRequest(RpcRequest):
2424

2525
def __init__(self):
26-
RpcRequest.__init__(self, 'Sts', '2015-04-01', 'AssumeRoleWithOIDC')
26+
RpcRequest.__init__(self, 'Sts', '2015-04-01', 'AssumeRoleWithOIDC','sts')
2727
self.set_protocol_type('https')
2828
self.set_method('POST')
2929

aliyun-python-sdk-sts/aliyunsdksts/request/v20150401/AssumeRoleWithSAMLRequest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
class AssumeRoleWithSAMLRequest(RpcRequest):
2424

2525
def __init__(self):
26-
RpcRequest.__init__(self, 'Sts', '2015-04-01', 'AssumeRoleWithSAML')
26+
RpcRequest.__init__(self, 'Sts', '2015-04-01', 'AssumeRoleWithSAML','sts')
2727
self.set_protocol_type('https')
2828
self.set_method('POST')
2929

aliyun-python-sdk-sts/aliyunsdksts/request/v20150401/GetCallerIdentityRequest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
class GetCallerIdentityRequest(RpcRequest):
2424

2525
def __init__(self):
26-
RpcRequest.__init__(self, 'Sts', '2015-04-01', 'GetCallerIdentity')
26+
RpcRequest.__init__(self, 'Sts', '2015-04-01', 'GetCallerIdentity','sts')
2727
self.set_protocol_type('https')
2828
self.set_method('POST')
2929

aliyun-python-sdk-sts/setup.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -65,13 +65,13 @@
6565
"Intended Audience :: Developers",
6666
"License :: OSI Approved :: Apache Software License",
6767
"Programming Language :: Python",
68-
"Programming Language :: Python :: 2.6",
69-
"Programming Language :: Python :: 2.7",
7068
"Programming Language :: Python :: 3",
71-
"Programming Language :: Python :: 3.3",
72-
"Programming Language :: Python :: 3.4",
73-
"Programming Language :: Python :: 3.5",
74-
"Programming Language :: Python :: 3.6",
69+
"Programming Language :: Python :: 3.7",
70+
"Programming Language :: Python :: 3.8",
71+
"Programming Language :: Python :: 3.9",
72+
"Programming Language :: Python :: 3.10",
73+
"Programming Language :: Python :: 3.11",
74+
"Programming Language :: Python :: 3.12",
7575
"Topic :: Software Development",
7676
)
7777

0 commit comments

Comments
 (0)