initiate_provider_registration
¶
initiate_provider_registration(
provider: Provider,
*,
config_overrides: Optional[SecurityAgentClientConfig] = None,
target_url: Optional[TargetUrl] = None,
organization_name: Optional[str] = None,
client_id: Optional[ClientId] = None,
client_secret: Optional[ClientSecret] = None,
) -> InitiateProviderRegistrationOutput
Initiates the OAuth registration flow with a third-party provider. Returns a redirect URL and CSRF state token for completing the authorization.
Parameters:
-
provider(Provider) –The provider to initiate registration with.
-
target_url(Optional[TargetUrl], default:None) –The HTTPS URL of a self-managed provider instance. Omit for SaaS providers.
-
organization_name(Optional[str], default:None) –The name of the organization to connect.
-
client_id(Optional[ClientId], default:None) –The client ID of the OAuth application registered on your self-managed provider instance.
-
client_secret(Optional[ClientSecret], default:None) –The client secret of the OAuth application registered on your self-managed provider instance.
Raises:
-
AccessDeniedException–You do not have sufficient access to perform this action.
-
ConflictException–The request could not be completed due to a conflict with the current state of the resource.
-
InternalServerException–An unexpected error occurred during the processing of your request.
-
ResourceNotFoundException–The specified resource was not found. Verify that the resource identifier is correct and that the resource exists in the specified agent space or account.
-
ThrottlingException–The request was denied due to request throttling.
-
ValidationException–The input fails to satisfy the constraints specified by the service.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_securityagent/_services/security_agent.py
2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 | |