Agent Single Sign-On Config
  • 16 Jun 2022
  • 2 Minutes to read
  • Dark
    Light

Agent Single Sign-On Config

  • Dark
    Light

Article summary

Agent Single Sign-On Config

You need Manage Security permission to set sso for a site.

Agent Single Sign-On Config JSON Format

Agent Single Sign-On Config is represented as simple flat JSON objects with the following keys:

NameTypeDescription
siteIdintegerId of the site.
isEnabledboolWhether Agent Single Sign-On is enabled or not.
protocolTypestringAllowed values are "samlSso", "jwtSso".
jwtLoginUrlstringJWT login url for remote authentication. Mandatory when the type is JWT SSO.
jwtLogoutUrlstringOnly available when type is jwtSso.
samlCertificatestringSAML certificate, mandatory when type is samlSso.
jwtSecretstringToken secret token. Mandatory when the type is JWT SSO.
samlSSOUrlstringSAML login url for remote authentication. Mandatory when the type is SAML SSO.
samlLogoutUrlstringOnly available when type is samlSso.

Get a single Agent Single Sign-On Config

GET global/agentSsoConfig

  • Parameters:

No Parameters

  • Response:

Agent Single Sign-On Config

  • Example

Sample Request:

curl https://api11.comm100.io/v4/global/agentSsoConfig \ 
    -X 'GET' \ 
    -H 'Authorization: Bearer {access_token}' \ 

Response:

HTTP/1.1 200 OK

{
  "siteId": 10000,
  "isEnabled": true,
  "protocolType": "samlSso",
  "jwtLoginUrl": "https://dash11.comm100.io/JWT/SSOLogin",
  "jwtLogoutUrl": "https://dash11.comm100.io/JWT/SSOLogout",
  "samlCertificate": "-----BEGIN CERTIFICATE-----\nMIIDqDCCApCgAwIBAgIGAXh4Z3tNMA0GCSqGSIb3DQEBCwUAMIGUMQswCQYDVQQGEwJVUzETMBEG\nA1UECAwKQ2FsaWZvcm5pYTEWMBQGA1UEBwwNU2FuIEZyYW5jaXNjbzENMAsGA1UECgwET2t0YTEU\nMBIGA1UECwwLU1NPUHJvdmlkZXIxFTATBgNVBAMMDGNvbW0xMDBtaWxhMjEcMBoGCSqGSIb3DQEJ\nARYNaW5mb0Bva3RhLmNvbTAeFw0yMTAzMjgxMDM0NTBaFw0zMTAzMjgxMDM1NTBaMIGUMQswCQYD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l": "https://dash11.comm100.io/SAML/SSOLogin",
  "samlLogoutUrl": "https://dash11.comm100.io/SAML/SSOLogout"
} 

Disable the Agent Single Sign-On Config

POST global/agentSsoConfig:disable

  • Parameters:

No Parameters

  • Response:

Agent Single Sign-On Config

  • Example

Sample Request:

curl https://api11.comm100.io/v4/global/agentSsoConfig:disable \ 
    -X 'POST' \ 
    -H 'Authorization: Bearer {access_token}' \ 

Response:

HTTP/1.1 200 OK

{
  "siteId": 10000,
  "isEnabled": false,
  "protocolType": "samlSso",
  "jwtLoginUrl": "https://dash11.comm100.io/JWT/SSOLogin",
  "jwtLogoutUrl": "https://dash11.comm100.io/JWT/SSOLogout",
  "samlCertificate": "-----BEGIN CERTIFICATE-----\nMIIDqDCCApCgAwIBAgIGAXh4Z3tNMA0GCSqGSIb3DQEBCwUAMIGUMQswCQYDVQQGEwJVUzETMBEG\nA1UECAwKQ2FsaWZvcm5pYTEWMBQGA1UEBwwNU2FuIEZyYW5jaXNjbzENMAsGA1UECgwET2t0YTEU\nMBIGA1UECwwLU1NPUHJvdmlkZXIxFTATBgNVBAMMDGNvbW0xMDBtaWxhMjEcMBoGCSqGSIb3DQEJ\nARYNaW5mb0Bva3RhLmNvbTAeFw0yMTAzMjgxMDM0NTBaFw0zMTAzMjgxMDM1NTBaMIGUMQswCQYD\nVQQGEwJVUzETMBEGA1UECAwKQ2FsaWZvcm5pYTEWMBQGA1UEBwwNU2FuIEZyYW5jaXNjbzENMAsG\nA1UECgwET2t0YTEUMBIGA1UECwwLU1NPUHJvdmlkZXIxFTATBgNVBAMMDGNvbW0xMDBtaWxhMjEc\nMBoGCSqGSIb3DQEJARYNaW5mb0Bva3RhLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoC\nggEBAI08p+T38Q41bl1Uob0oak4q+5h0evb2PSSU2uwl6j/hdvaDTvH9tleZRYfBrTReVIi+CX9q\n2dH1i7DKejJmLx4yQR+d41NeNEyYZloz54q+8On2gxP+SknZhje8oiPKF+lMuW0KEOrLWScBYvcK\nSHVlMXM1u+lyrt6jw0P8Lh2Ga6irt4p8h6VcmIZLo8uQZSeRG8xqOVxhmiRC9rU4v1Hr50Lq6Cra\nRJvm9n7LVnigiZGjG6dW2jbPxYx8LyMKX3EuUr7ymvtoSSWwUHhWCQiaDksdu0q2R9oEalPYjqyh\n+1QeCEbmmm/drNeej8a8wcPlhWXfb+MCswSI6oEqxUsCAwEAATANBgkqhkiG9w0BAQsFAAOCAQEA\nhBOnMO9jwqyd+DTToEpVknb0fP9fSzgrTfPWEFiozE/+R0oHXkcC2t2mUbfbvwt5NL9t5I7/q2bH\nLw/8FZgA0KmnFGIpTJd0kVeYysUfP9FJOgGz/63NgpmxrG8x3fxgOnY+TF+oYFkeGuDTwaejmlsV\nAzgLLbo1xN6mTMZ/FcQhnrg9nbaeUhaTQ0E5YbVNDo3qPFu58ZbqbljRTKHW4KdQ3FwVuDLrNimf\n1G7jb+8ySYD9xvdcbJgfTJVNyqSLn16i6s5z/vf5qzbiAf1gEP6dtjdH1ok1yZEOqdiFb6iJp/hi\nGfDTLRKSRwXQ4H1bEqdhQjLIn6kci02Dw2D8gg==\n-----END CERTIFICATE-----",
  "jwtSecret": "NGE1NTI1NjAtZmRkNC00ZjA5LTgxMjctMjYwMmFlNmM4MjU5",
  "samlSSOUrl": "https://dash11.comm100.io/SAML/SSOLogin",
  "samlLogoutUrl": "https://dash11.comm100.io/SAML/SSOLogout"
} 

Enable the Agent Single Sign-On Config

POST global/agentSsoConfig:enable

  • Parameters:

No Parameters

  • Response:

Agent Single Sign-On Config

  • Example

Sample Request:

curl https://api11.comm100.io/v4/global/agentSsoConfig:enable \ 
    -X 'POST' \ 
    -H 'Authorization: Bearer {access_token}' \ 

Response:

HTTP/1.1 200 OK

{
  "siteId": 10000,
  "isEnabled": true,
  "protocolType": "samlSso",
  "jwtLoginUrl": "https://dash11.comm100.io/JWT/SSOLogin",
  "jwtLogoutUrl": "https://dash11.comm100.io/JWT/SSOLogout",
  "sam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P9FJOgGz/63NgpmxrG8x3fxgOnY+TF+oYFkeGuDTwaejmlsV\nAzgLLbo1xN6mTMZ/FcQhnrg9nbaeUhaTQ0E5YbVNDo3qPFu58ZbqbljRTKHW4KdQ3FwVuDLrNimf\n1G7jb+8ySYD9xvdcbJgfTJVNyqSLn16i6s5z/vf5qzbiAf1gEP6dtjdH1ok1yZEOqdiFb6iJp/hi\nGfDTLRKSRwXQ4H1bEqdhQjLIn6kci02Dw2D8gg==\n-----END CERTIFICATE-----",
  "jwtSecret": "NGE1NTI1NjAtZmRkNC00ZjA5LTgxMjctMjYwMmFlNmM4MjU5",
  "samlSSOUrl": "https://dash11.comm100.io/SAML/SSOLogin",
  "samlLogoutUrl": "https://dash11.comm100.io/SAML/SSOLogout"
} 

Update the Agent Single Sign-On Config

PUT global/agentSsoConfig

  • Parameters:

NameTypeinRequiredDescription
isEnabledboolbodynoWhether Agent Single Sign-On is enabled or not.
protocolTypestringbodyyesAllowed values are "samlSso", "jwtSso".
jwtLoginUrlstringbodyyesJWT login url for remote authentication. Mandatory when the type is JWT SSO.
jwtLogoutUrlstringbodynoOnly available when type is jwtSso.
samlCertificatestringbodyyesSAML certificate, mandatory when type is samlSso.
jwtSecretstringbodynoToken secret token. Mandatory when the type is JWT SSO.
samlSSOUrlstringbodyyesSAML login url for remote authentication. Mandatory when the type is SAML SSO.
samlLogoutUrlstringbodynoOnly available when type is samlSso.
  • Response:

Agent Single Sign-On Config

  • Example

Sample Request:

curl https://api11.comm100.io/v4/global/agentSsoConfig \ 
    -X 'PUT' \ 
    -H 'Authorization: Bearer {access_token}' \ 
    -H 'Content-Type: application/json' \ 
    -D '{"isEnabled":true,"protocolType":"samlSso","jwtLoginUrl":"https://dash11.comm100.io/JWT/SSOLogin","jwtLogoutUrl":"https://dash11.comm100.io/JWT/SSOLogout","samlCertificate":"-----BEGIN CERTIFICATE-----\nMIIDqDCCApCgAwIBAgIGAXh4Z3tNMA0GCSqGSIb3DQEBCwUAMIGUMQswCQYD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5YbVNDo3qPFu58ZbqbljRTKHW4KdQ3FwVuDLrNimf\n1G7jb+8ySYD9xvdcbJgfTJVNyqSLn16i6s5z/vf5qzbiAf1gEP6dtjdH1ok1yZEOqdiFb6iJp/hi\nGfDTLRKSRwXQ4H1bEqdhQjLIn6kci02Dw2D8gg==\n-----END CERTIFICATE-----","jwtSecret":"NGE1NTI1NjAtZmRkNC00ZjA5LTgxMjctMjYwMmFlNmM4MjU5","samlSSOUrl":"https://dash11.comm100.io/SAML/SSOLogin","samlLogoutUrl":"https://dash11.comm100.io/SAML/SSOLogout"}' 

Response:

HTTP/1.1 200 OK

{
  "siteId": 10000,
  "isEnabled": true,
  "protocolType": "samlSso",
  "jwtLoginUrl": "https://dash11.comm100.io/JWT/SSOLogin",
  "jwtLogoutUrl": "https://dash11.comm100.io/JWT/SSOLogout",
  "samlCertificate": "-----BEGIN CERTIFICATE-----\nMIIDqDCCApCgAwIBAgIGAXh4Z3tNMA0GCSqGSIb3DQEBCwUAMIGUMQswCQYDVQQGEwJVUzETMBEG\nA1UECAwKQ2FsaWZvcm5pYTEWMBQGA1UEBwwNU2FuIEZyYW5jaXNjbzENMAsGA1UECgwET2t0YTEU\nMBIGA1UECwwLU1NPUHJvdmlkZXIxFTATBgNVBAMMDGNvbW0xMDBtaWxhMjEcMBoGCSqGSIb3DQEJ\nARYNaW5mb0Bva3RhLmNvbTAeFw0yMTAzMjgxMDM0NTBaFw0zMTAzMjgxMDM1NTBaMIGUMQswCQYD\nVQQGEwJVUzETMBEGA1UECAwKQ2FsaWZvcm5pYTEWMBQGA1UEBwwNU2FuIEZyYW5jaXNjbzENMAsG\nA1UECgwET2t0YTEUMBIGA1UECwwLU1NPUHJvdmlkZXIxFTATBgNVBAMMDGNvbW0xMDBtaWxhMjEc\nMBoGCSqGSIb3DQEJARYNaW5mb0Bva3RhLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoC\nggEBAI08p+T38Q41bl1Uob0oak4q+5h0evb2PSSU2uwl6j/hdvaDTvH9tleZRYfBrTReVIi+CX9q\n2dH1i7DKejJmLx4yQR+d41NeNEyYZloz54q+8On2gxP+SknZhje8oiPKF+lMuW0KEOrLWScBYvcK\nSHVlMXM1u+lyrt6jw0P8Lh2Ga6irt4p8h6VcmIZLo8uQZSeRG8xqOVxhmiRC9rU4v1Hr50Lq6Cra\nRJvm9n7LVnigiZGjG6dW2jbPxYx8LyMKX3EuUr7ymvtoSSWwUHhWCQiaDksdu0q2R9oEalPYjqyh\n+1QeCEbmmm/drNeej8a8wcPlhWXfb+MCswSI6oEqxUsCAwEAATANBgkqhkiG9w0BAQsFAAOCAQEA\nhBOnMO9jwqyd+DTToEpVknb0fP9fSzgrTfPWEFiozE/+R0oHXkcC2t2mUbfbvwt5NL9t5I7/q2bH\nLw/8FZgA0KmnFGIpTJd0kVeYysUfP9FJOgGz/63NgpmxrG8x3fxgOnY+TF+oYFkeGuDTwaejmlsV\nAzgLLbo1xN6mTMZ/FcQhnrg9nbaeUhaTQ0E5YbVNDo3qPFu58ZbqbljRTKHW4KdQ3FwVuDLrNimf\n1G7jb+8ySYD9xvdcbJgfTJVNyqSLn16i6s5z/vf5qzbiAf1gEP6dtjdH1ok1yZEOqdiFb6iJp/hi\nGfDTLRKSRwXQ4H1bEqdhQjLIn6kci02Dw2D8gg==\n-----END CERTIFICATE-----",
  "jwtSecret": "NGE1NTI1NjAtZmRkNC00ZjA5LTgxMjctMjYwMmFlNmM4MjU5",
  "samlSSOUrl": "https://dash11.comm100.io/SAML/SSOLogin",
  "samlLogoutUrl": "https://dash11.comm100.io/SAML/SSOLogout"
} 

Remove the Agent Single Sign-On Config

DELETE global/agentSsoConfig

  • Parameters:

No Parameters

  • Response:

No Content

  • Example

Sample Request:

curl https://api11.comm100.io/v4/global/agentSsoConfig \ 
    -X 'DELETE' \ 
    -H 'Authorization: Bearer {access_token}' \ 

Response:

HTTP/1.1 204 No Content


Was this article helpful?