ExternalAuth

ExternalAuth #

Package : spaceone.api.identity.v2



ExternalAuth #

ExternalAuth Methods:

MethodRequestResponse
setSetExternalAuthRequestExternalAuthInfo
unsetExternalAuthRequestExternalAuthInfo
getExternalAuthRequestExternalAuthInfo

set #

Google OAuth2, Keycloak OIDC, SAML are supported as external authentication.

POST /identity/v2/external-auth/set

SetExternalAuthRequest

  • plugin_info (PluginRequest) Required
{
 "plugin_id": "plugin-googleoauth2-identity-auth",
 "upgrade_mode": "AUTO",
 "options": {
     "client_id": "client_id",
     "protocol": "oauth2",
     "identity_provider": "google",
     "validator": "gmail.com"
  }
}

ExternalAuthInfo

  • domain_id (string) Required

  • state (State) Required

  • plugin_info (PluginInfo) Required

  • updated_at (string) Required

{
 "domain_id": "domain-123456",
 "plugin_info": {
     "metadata": {
         "authorization_endpoint": "https://www.googleapis.com",
         "client_id": "client_id",
         "identity_provider": "google",
         "protocol": "oauth2",
         "token_endpoint": "https://www.googleapis.com/oauth2/v2/tokeninfo",
         "userinfo_endpoint": "https://www.googleapis.com/oauth2/v3/userinfo",
         "validator": "gmail.com"
     },
     "options": {
         "client_id": "client_id",
         "identity_provider": "google",
         "protocol": "oauth2",
         "validator": "gmail.com"
     },
     "plugin_id": "plugin-googleoauth2-identity-auth",
     "upgrade_mode": "AUTO",
     "version": "1.1.3"
 }
}

unset #

Unset external authentication information.

POST /identity/v2/external-auth/unset

ExternalAuthInfo

  • domain_id (string) Required

  • state (State) Required

  • plugin_info (PluginInfo) Required

  • updated_at (string) Required

{
 "domain_id": "domain-123456",
 "plugin_info": {
     "metadata": {
         "authorization_endpoint": "https://www.googleapis.com",
         "client_id": "client_id",
         "identity_provider": "google",
         "protocol": "oauth2",
         "token_endpoint": "https://www.googleapis.com/oauth2/v2/tokeninfo",
         "userinfo_endpoint": "https://www.googleapis.com/oauth2/v3/userinfo",
         "validator": "gmail.com"
     },
     "options": {
         "client_id": "client_id",
         "identity_provider": "google",
         "protocol": "oauth2",
         "validator": "gmail.com"
     },
     "plugin_id": "plugin-googleoauth2-identity-auth",
     "upgrade_mode": "AUTO",
     "version": "1.1.3"
 }
}

get #

Get external authentication information.

POST /identity/v2/external-auth/get

ExternalAuthInfo

  • domain_id (string) Required

  • state (State) Required

  • plugin_info (PluginInfo) Required

  • updated_at (string) Required

{
 "domain_id": "domain-123456",
 "plugin_info": {
     "metadata": {
         "authorization_endpoint": "https://www.googleapis.com",
         "client_id": "client_id",
         "identity_provider": "google",
         "protocol": "oauth2",
         "token_endpoint": "https://www.googleapis.com/oauth2/v2/tokeninfo",
         "userinfo_endpoint": "https://www.googleapis.com/oauth2/v3/userinfo",
         "validator": "gmail.com"
     },
     "options": {
         "client_id": "client_id",
         "identity_provider": "google",
         "protocol": "oauth2",
         "validator": "gmail.com"
     },
     "plugin_id": "plugin-googleoauth2-identity-auth",
     "upgrade_mode": "AUTO",
     "version": "1.1.3"
 }
}


Message #

ExternalAuthInfo #

  • domain_id (string) Required

  • state (State) Required

  • plugin_info (PluginInfo) Required

  • updated_at (string) Required


ExternalAuthRequest
#

SetExternalAuthRequest #

  • plugin_info (PluginRequest) Required


Calendar December 4, 2024
Edit Edit this page