SamlConnectionsService
A list of all methods in the SamlConnectionsService service. Click on the method name to view detailed information about that method.
| Methods | Description |
|---|---|
| listSamlConnections | Returns a list of SAML connections. The connections are scoped by the current user and returned from Clerk |
| createSamlConnection | Creates a new SAML connection |
| getSamlConnectionById | Checks whether a user has a SAML connection and then hydrates the connection from Clerk |
| updateSamlConnectionById | Checks whether a user owns a SAML connection and then updates the SAML connection |
| deleteSamlConnectionById | Deletes a SAML connection by its ID |
listSamlConnections
Returns a list of SAML connections. The connections are scoped by the current user and returned from Clerk
- HTTP Method:
GET - Endpoint:
/samlConnection
Return Type
SamlConnections
Example Usage Code Snippet
import com.swagger.petstore.TestSdk;
import com.swagger.petstore.config.TestSdkConfig;
import com.swagger.petstore.models.SamlConnections;
public class Main {
public static void main(String[] args) {
TestSdkConfig config = TestSdkConfig.builder()
.accessToken("YOUR_ACCESS_TOKEN")
.build();
TestSdk testSdk = new TestSdk(config);
SamlConnections response = testSdk.samlConnections.listSamlConnections();
System.out.println(response);
}
}
createSamlConnection
Creates a new SAML connection
- HTTP Method:
POST - Endpoint:
/samlConnection
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| samlConnectionParams | SamlConnectionParams | ❌ | Request Body |
Return Type
SamlConnection
Example Usage Code Snippet
import com.swagger.petstore.TestSdk;
import com.swagger.petstore.config.TestSdkConfig;
import com.swagger.petstore.models.SamlConnection;
import com.swagger.petstore.models.SamlConnectionParams;
public class Main {
public static void main(String[] args) {
TestSdkConfig config = TestSdkConfig.builder()
.accessToken("YOUR_ACCESS_TOKEN")
.build();
TestSdk testSdk = new TestSdk(config);
SamlConnectionParams samlConnectionParams = SamlConnectionParams.builder()
.name("name")
.domain("domain")
.idpEntityId("idp_entity_id")
.idpSsoUrl("idp_sso_url")
.idpCertificate("idp_certificate")
.build();
SamlConnection response = testSdk.samlConnections.createSamlConnection(samlConnectionParams);
System.out.println(response);
}
}
getSamlConnectionById
Checks whether a user has a SAML connection and then hydrates the connection from Clerk
- HTTP Method:
GET - Endpoint:
/samlConnection/{saml_connection_id}
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| samlConnectionId | String | ✅ | The ID of the SAML connection to retrieve |
Return Type
SamlConnection
Example Usage Code Snippet
import com.swagger.petstore.TestSdk;
import com.swagger.petstore.config.TestSdkConfig;
import com.swagger.petstore.models.SamlConnection;
public class Main {
public static void main(String[] args) {
TestSdkConfig config = TestSdkConfig.builder()
.accessToken("YOUR_ACCESS_TOKEN")
.build();
TestSdk testSdk = new TestSdk(config);
SamlConnection response = testSdk.samlConnections.getSamlConnectionById("saml_connection_id");
System.out.println(response);
}
}
updateSamlConnectionById
Checks whether a user owns a SAML connection and then updates the SAML connection
- HTTP Method:
PUT - Endpoint:
/samlConnection/{saml_connection_id}
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| samlConnectionId | String | ✅ | The ID of the SAML connection to update |
| samlConnectionUpdateParams | SamlConnectionUpdateParams | ✅ | Request Body |
Return Type
SamlConnection
Example Usage Code Snippet
import com.swagger.petstore.TestSdk;
import com.swagger.petstore.config.TestSdkConfig;
import com.swagger.petstore.models.SamlConnection;
import com.swagger.petstore.models.SamlConnectionUpdateParams;
public class Main {
public static void main(String[] args) {
TestSdkConfig config = TestSdkConfig.builder()
.accessToken("YOUR_ACCESS_TOKEN")
.build();
TestSdk testSdk = new TestSdk(config);
SamlConnectionUpdateParams samlConnectionUpdateParams = SamlConnectionUpdateParams.builder()
.name("name")
.domain("domain")
.idpEntityId("idp_entity_id")
.idpSsoUrl("idp_sso_url")
.idpCertificate("idp_certificate")
.active(true)
.build();
SamlConnection response = testSdk.samlConnections.updateSamlConnectionById("saml_connection_id", samlConnectionUpdateParams);
System.out.println(response);
}
}
deleteSamlConnectionById
Deletes a SAML connection by its ID
- HTTP Method:
DELETE - Endpoint:
/samlConnection/{saml_connection_id}
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| samlConnectionId | String | ✅ | The ID of the SAML connection to update |
Example Usage Code Snippet
import com.swagger.petstore.TestSdk;
import com.swagger.petstore.config.TestSdkConfig;
public class Main {
public static void main(String[] args) {
TestSdkConfig config = TestSdkConfig.builder()
.accessToken("YOUR_ACCESS_TOKEN")
.build();
TestSdk testSdk = new TestSdk(config);
testSdk.samlConnections.deleteSamlConnectionById("saml_connection_id");
}
}