rotateComplete

abstract suspend fun rotateComplete(connectionId: String): SCIMRotateCompleteResponse

Completes the SCIM bearer token rotate, removing the old bearer token from operation. This method wraps the {@link https://stytch.com/docs/b2b/api/scim-rotate-token-complete complete-rotation} endpoint. The caller must have permission to modify SCIM via the project's RBAC policy & their role assignments.

Return

SCIMRotateCompleteResponse

Parameters

connectionId

the ID of the connection to complete the bearer token rotation process


abstract fun rotateComplete(connectionId: String, callback: (SCIMRotateCompleteResponse) -> Unit)

Completes the SCIM bearer token rotate, removing the old bearer token from operation. This method wraps the {@link https://stytch.com/docs/b2b/api/scim-rotate-token-complete complete-rotation} endpoint. The caller must have permission to modify SCIM via the project's RBAC policy & their role assignments.

Parameters

connectionId

the ID of the connection to complete the bearer token rotation process

callback

a callback that receives a SCIMRotateCompleteResponse