initiate_provider_registration
async
¶
initiate_provider_registration(
provider: Provider,
*,
config_overrides: Optional[AsyncSecurityAgentClientConfig] = 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/async_security_agent.py
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 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 | |