GetApplicationSsoConfig
Queries the single sign-on (SSO) configuration properties of an EIAM application.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
eiam:GetApplicationSsoConfig |
get |
*Application
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The instance ID. |
idaas_ue2jvisn35ea5lmthk267xxxxx |
| ApplicationId |
string |
Yes |
The application ID. |
app_mkv7rgt4d7i4u7zqtzev2mxxxx |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
0441BD79-92F3-53AA-8657-F8CE4A2B912A |
| ApplicationSsoConfig |
object |
The application single sign-on (SSO) configuration information. |
|
| SamlSsoConfig |
object |
The SSO attribute configuration parameters for the SAML protocol. Returned only when the application SSO protocol is SAML 2.0. |
|
| SpSsoAcsUrl |
string |
The SAML assertion consumer service (ACS) URL of the application (service provider). |
https://signin.aliyun.com/saml-role/sso |
| SpEntityId |
string |
The SAML entity ID of the application (service provider). |
urn:alibaba:cloudcomputing |
| NameIdFormat |
string |
The standard NameID format for the SAML protocol. Valid values:
|
urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified |
| NameIdValueExpression |
string |
The expression used to generate the actual value of the NameID for the SAML protocol. |
user.username |
| DefaultRelayState |
string |
The default RelayState value. When a user's single sign-on logon request is initiated by EIAM, the SAML response provided by EIAM specifies the RelayState as this value. |
https://home.console.aliyun.com |
| SignatureAlgorithm |
string |
The signature algorithm for the SAML assertion. |
RSA-SHA256 |
| ResponseSigned |
boolean |
Specifies whether the response requires a signature. ResponseSigned and AssertionSigned cannot both be false. Valid values:
|
true |
| AssertionSigned |
boolean |
Specifies whether the assertion requires a signature. ResponseSigned and AssertionSigned cannot both be false. Valid values:
|
true |
| AttributeStatements |
array<object> |
The additional user attribute configurations included in the SAML assertion. |
|
|
object |
|||
| AttributeName |
string |
The name of the attribute in the SAML assertion. |
https://www.aliyun.com/SAML-Role/Attributes/RoleSessionName |
| AttributeValueExpression |
string |
The value expression of the attribute in the SAML assertion. |
user.username |
| IdPEntityId |
string |
The entity ID that represents the identity provider (IdP) in the SAML protocol. |
https://example.com/ |
| OptionalRelayStates |
array<object> |
The optional RelayState values. On the application card in the application portal, display names for multiple optional redirect URLs are shown. After the user clicks and completes SSO, they are automatically redirected to the corresponding URL. You must specify a default redirect URL before specifying optional ones. |
|
|
object |
|||
| RelayState |
string |
The optional RelayState value. On the application card in the application portal, display names for multiple optional redirect URLs are shown. After the user clicks and completes SSO, they are automatically redirected to the corresponding URL. |
https://home.console.aliyun.com |
| DisplayName |
string |
The display name of the RelayState. |
Ram Account SSO |
| SpSigningCertificates |
array |
The array of configured SP signature verification certificates in PEM format. A maximum of two certificates can be returned for the console or API caller to read and display. |
["-----BEGIN CERTIFICATE----- MIIC0jCCAbqgAwIBAgIQXXXXX -----END CERTIFICATE-----"] |
|
string |
The configured SP signature verification certificate in PEM format. |
-----BEGIN CERTIFICATE----- MIIC0jCCAbqgAwIBAgIQXXXXX -----END CERTIFICATE----- |
|
| RequireAuthnRequestSigned |
boolean |
The current status of the SSO signature verification switch. |
true |
| SpSloResponseUrl |
string |
The configured single logout (SLO) response URL for the service provider. |
https://example.com/api/slo/response |
| OidcSsoConfig |
object |
The SSO attribute configuration parameters for the OIDC protocol. Returned only when the application SSO protocol is OIDC. |
|
| RedirectUris |
array |
The list of redirect URIs supported by the application. |
|
|
string |
The redirect URI supported by the application. |
https://example.com/oidc/login/callback |
|
| PostLogoutRedirectUris |
array |
The list of logout callback URLs supported by the application. |
|
|
string |
The whitelisted logout callback URL for the application. When the application initiates a logout request, you can specify the post_logout_redirect_uri parameter. |
https://example.com/oidc/login/logout |
|
| GrantTypes |
array |
The list of supported OIDC grant types. |
["authorization_code"] |
|
string |
The supported OIDC grant type. Valid values:
|
refresh_token |
|
| ResponseTypes |
array |
The response types supported by the application when OidcSsoConfig.GrantTypes includes the implicit mode. |
["token id_token"] |
|
string |
The standard OIDC ResponseType parameter. This parameter takes effect only when GrantTypes includes the implicit mode. Valid values:
|
token id_token |
|
| GrantScopes |
array |
The standard OIDC scope parameter. It specifies the range of user attributes that the userinfo endpoint or ID token can return. |
["profile","email"] |
|
string |
The standard OIDC scope parameter. It specifies the range of user attributes that the userinfo endpoint or ID token can return. Valid values:
|
openid |
|
| PasswordTotpMfaRequired |
boolean |
Specifies whether time-based one-time password (TOTP) multi-factor authentication (MFA) is mandatory for the password mode. This parameter takes effect only when the GrantTypes specified for the OIDC application includes the password mode. |
true |
| PasswordAuthenticationSourceId |
string |
The ID of the authentication source used for the password mode. This parameter takes effect only when the GrantTypes specified for the OIDC application includes the password mode. |
ia_password |
| PkceRequired |
boolean |
Specifies whether Proof Key for Code Exchange (PKCE) (RFC 7636) is mandatory for the application SSO. |
true |
| PkceChallengeMethods |
array |
The algorithm used to calculate the code challenge in PKCE. |
["S256"] |
|
string |
The algorithm used to calculate the code challenge in PKCE. Valid values:
|
S256 |
|
| AccessTokenEffectiveTime |
integer |
The validity period of the issued access token, in seconds. Default value: 1200 (20 minutes). |
1200 |
| CodeEffectiveTime |
integer |
The validity period of the issued code, in seconds. Default value: 60 (1 minute). |
60 |
| IdTokenEffectiveTime |
integer |
The validity period of the issued ID token, in seconds. Default value: 300 (5 minutes). |
1200 |
| RefreshTokenEffective |
integer |
The validity period of the issued refresh token, in seconds. Default value: 86400 (1 day). |
86400 |
| CustomClaims |
array<object> |
The custom user information included in the returned ID token. |
|
|
object |
|||
| ClaimName |
string |
The name of the returned claim. |
userOuIds |
| ClaimValueExpression |
string |
The value expression of the returned claim. |
ObjectToJsonString(user.organizationalUnits) |
| SubjectIdExpression |
string |
The custom expression for the sub claim value returned in the ID token. |
user.userid |
| AllowedPublicClient |
string |
Specifies whether the application is allowed to act as a public client when requesting the IDaaS EIAM authorization server. This is supported only when the authorization code mode and device authorization mode are enabled. Default value: false. |
true |
| ProtocolEndpointDomain |
object |
The metadata endpoint configuration provided by the application. |
|
| SamlSsoEndpoint |
string |
The endpoint that receives SAML AuthnRequest requests. This parameter is returned only when the SSO protocol of the application is SAML 2.0. |
https://l1seshcn.aliyunidaas.com/login/app/app_mltuxdwd4lq4eer6tmtlmaxm5e/saml2/sso |
| SamlMetaEndpoint |
string |
The metadata URL for the SAML protocol. This parameter is returned only when the SSO protocol of the application is SAML 2.0. |
https://l1seshcn.aliyunidaas.com/api/v2/app_mltuxdwd4lq4eer6tmtlmaxm5e/saml2/meta |
| SamlSloEndpoint |
string |
The SAML single logout (SLO) URL on the IdP side. The service provider (SP) redirects users to this URL to initiate single logout. |
https://example.com/saml/slo |
| OidcIssuer |
string |
The OIDC issuer information. This parameter is returned only when the SSO protocol of the application is OIDC. |
https://eiam-api-cn-hangzhou.aliyuncs.com/v2/idaas_ue2jvisn35ea5lmthk2676rypm/app_mltta64q65enci54slingvvsgq/oidc |
| OidcJwksEndpoint |
string |
The OIDC JSON Web Key Set (JWKS) URL. This parameter is returned only when the SSO protocol of the application is OIDC. |
https://eiam-api-cn-hangzhou.aliyuncs.com/v2/idaas_ue2jvisn35ea5lmthk2676rypm/app_mltta64q65enci54slingvvsgq/oidc/jwks |
| Oauth2AuthorizationEndpoint |
string |
The OAuth 2.0 authorization endpoint. This parameter is returned only when the SSO protocol of the application is OIDC. |
https://l1seshcn.aliyunidaas.com/login/app/app_mltta64q65enci54slingvvsgq/oauth2/authorize |
| Oauth2RevokeEndpoint |
string |
The OAuth 2.0 token revocation endpoint. This parameter is returned only when the SSO protocol of the application is OIDC. |
https://eiam-api-cn-hangzhou.aliyuncs.com/v2/idaas_ue2jvisn35ea5lmthk2676rypm/app_mltta64q65enci54slingvvsgq/oauth2/revoke |
| Oauth2TokenEndpoint |
string |
The OAuth 2.0 token endpoint. This parameter is returned only when the SSO protocol of the application is OIDC. |
https://eiam-api-cn-hangzhou.aliyuncs.com/v2/idaas_ue2jvisn35ea5lmthk2676rypm/app_mltta64q65enci54slingvvsgq/oauth2/token |
| Oauth2DeviceAuthorizationEndpoint |
string |
The OAuth 2.0 device authorization endpoint. This parameter is returned only when the SSO protocol of the application is OIDC. |
https://eiam-api-cn-hangzhou.aliyuncs.com/v2/idaas_ue2jvisn35ea5lmthk2676rypm/app_mltta64q65enci54slingvvsgq/oauth2/device/code |
| Oauth2UserinfoEndpoint |
string |
The OIDC userinfo endpoint. This parameter is returned only when the SSO protocol of the application is OIDC. |
https://eiam-api-cn-hangzhou.aliyuncs.com/v2/idaas_ue2jvisn35ea5lmthk2676rypm/app_mltta64q65enci54slingvvsgq/oauth2/userinfo |
| OidcLogoutEndpoint |
string |
The OIDC RP-initiated logout endpoint. This parameter is returned only when the SSO protocol of the application is OIDC. |
https://l1seshcn.aliyunidaas.com/login/app/app_mltta64q65enci54slingvvsgq/oauth2/logout |
| SsoStatus |
string |
The status of the SSO feature for the application. Valid values:
|
enabled |
| InitLoginType |
string |
The initial single sign-on (SSO) logon method. Valid values:
|
only_app_init_sso |
| InitLoginUrl |
string |
The trigger URL for the initial single sign-on (SSO) logon. This parameter is required when the InitLoginType of an application using the OIDC protocol is set to idaas_or_app_init_sso, or when the InitLoginType of an application using the SAML protocol is set to only_app_init_sso. |
http://127.0.0.1:8000/start_login?enterprise_code=ABCDEF |
Examples
Success response
JSON format
{
"RequestId": "0441BD79-92F3-53AA-8657-F8CE4A2B912A",
"ApplicationSsoConfig": {
"SamlSsoConfig": {
"SpSsoAcsUrl": "https://signin.aliyun.com/saml-role/sso",
"SpEntityId": "urn:alibaba:cloudcomputing",
"NameIdFormat": "urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified",
"NameIdValueExpression": "user.username",
"DefaultRelayState": "https://home.console.aliyun.com",
"SignatureAlgorithm": "RSA-SHA256",
"ResponseSigned": true,
"AssertionSigned": true,
"AttributeStatements": [
{
"AttributeName": "https://www.aliyun.com/SAML-Role/Attributes/RoleSessionName",
"AttributeValueExpression": "user.username"
}
],
"IdPEntityId": "https://example.com/",
"OptionalRelayStates": [
{
"RelayState": "https://home.console.aliyun.com",
"DisplayName": "Ram Account SSO"
}
],
"SpSigningCertificates": [
"-----BEGIN CERTIFICATE----- MIIC0jCCAbqgAwIBAgIQXXXXX -----END CERTIFICATE-----"
],
"RequireAuthnRequestSigned": true,
"SpSloResponseUrl": "https://example.com/api/slo/response"
},
"OidcSsoConfig": {
"RedirectUris": [
"https://example.com/oidc/login/callback\n"
],
"PostLogoutRedirectUris": [
"https://example.com/oidc/login/logout\n"
],
"GrantTypes": [
"refresh_token"
],
"ResponseTypes": [
"token id_token"
],
"GrantScopes": [
"openid"
],
"PasswordTotpMfaRequired": true,
"PasswordAuthenticationSourceId": "ia_password",
"PkceRequired": true,
"PkceChallengeMethods": [
"S256"
],
"AccessTokenEffectiveTime": 1200,
"CodeEffectiveTime": 60,
"IdTokenEffectiveTime": 1200,
"RefreshTokenEffective": 86400,
"CustomClaims": [
{
"ClaimName": "userOuIds",
"ClaimValueExpression": "ObjectToJsonString(user.organizationalUnits)"
}
],
"SubjectIdExpression": "user.userid",
"AllowedPublicClient": "true"
},
"ProtocolEndpointDomain": {
"SamlSsoEndpoint": "https://l1seshcn.aliyunidaas.com/login/app/app_mltuxdwd4lq4eer6tmtlmaxm5e/saml2/sso",
"SamlMetaEndpoint": "https://l1seshcn.aliyunidaas.com/api/v2/app_mltuxdwd4lq4eer6tmtlmaxm5e/saml2/meta",
"SamlSloEndpoint": "https://example.com/saml/slo",
"OidcIssuer": "https://eiam-api-cn-hangzhou.aliyuncs.com/v2/idaas_ue2jvisn35ea5lmthk2676rypm/app_mltta64q65enci54slingvvsgq/oidc",
"OidcJwksEndpoint": "https://eiam-api-cn-hangzhou.aliyuncs.com/v2/idaas_ue2jvisn35ea5lmthk2676rypm/app_mltta64q65enci54slingvvsgq/oidc/jwks",
"Oauth2AuthorizationEndpoint": "https://l1seshcn.aliyunidaas.com/login/app/app_mltta64q65enci54slingvvsgq/oauth2/authorize",
"Oauth2RevokeEndpoint": "https://eiam-api-cn-hangzhou.aliyuncs.com/v2/idaas_ue2jvisn35ea5lmthk2676rypm/app_mltta64q65enci54slingvvsgq/oauth2/revoke",
"Oauth2TokenEndpoint": "https://eiam-api-cn-hangzhou.aliyuncs.com/v2/idaas_ue2jvisn35ea5lmthk2676rypm/app_mltta64q65enci54slingvvsgq/oauth2/token",
"Oauth2DeviceAuthorizationEndpoint": "https://eiam-api-cn-hangzhou.aliyuncs.com/v2/idaas_ue2jvisn35ea5lmthk2676rypm/app_mltta64q65enci54slingvvsgq/oauth2/device/code",
"Oauth2UserinfoEndpoint": "https://eiam-api-cn-hangzhou.aliyuncs.com/v2/idaas_ue2jvisn35ea5lmthk2676rypm/app_mltta64q65enci54slingvvsgq/oauth2/userinfo",
"OidcLogoutEndpoint": "https://l1seshcn.aliyunidaas.com/login/app/app_mltta64q65enci54slingvvsgq/oauth2/logout"
},
"SsoStatus": "enabled",
"InitLoginType": "only_app_init_sso",
"InitLoginUrl": "http://127.0.0.1:8000/start_login?enterprise_code=ABCDEF"
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.