register_oidc_config_test
async
¶
register_oidc_config_test(
network_id: NetworkId,
issuer: GenericString,
scopes: GenericString,
*,
config_overrides: Optional[AsyncWickrClientConfig] = None,
extra_auth_params: Optional[GenericString] = None,
certificate: Optional[GenericString] = None,
) -> RegisterOidcConfigTestResponse
Tests an OpenID Connect (OIDC) configuration for a Wickr network by validating the connection to the identity provider and retrieving its supported capabilities.
Parameters:
-
network_id(NetworkId) –The ID of the Wickr network for which the OIDC configuration will be tested.
-
extra_auth_params(Optional[GenericString], default:None) –Additional authentication parameters to include in the test (optional).
-
issuer(GenericString) –The issuer URL of the OIDC provider to test.
-
scopes(GenericString) –The OAuth scopes to test with the OIDC provider.
-
certificate(Optional[GenericString], default:None) –The CA certificate for secure communication with the OIDC provider (optional).
Raises:
-
BadRequestError–The request was invalid or malformed. This error occurs when the request parameters do not meet the API requirements, such as invalid field values, missing required parameters, or improperly formatted data.
-
ForbiddenError–Access to the requested resource is forbidden. This error occurs when the authenticated user does not have the necessary permissions to perform the requested operation, even though they are authenticated.
-
InternalServerError–An unexpected error occurred on the server while processing the request. This indicates a problem with the Wickr service itself rather than with the request. If this error persists, contact Amazon Web Services Support.
-
RateLimitError–The request was throttled because too many requests were sent in a short period of time. Wait a moment and retry the request. Consider implementing exponential backoff in your application.
-
ResourceNotFoundError–The requested resource could not be found. This error occurs when you try to access or modify a network, user, bot, security group, or other resource that doesn't exist or has been deleted.
-
UnauthorizedError–The request was not authenticated or the authentication credentials were invalid. This error occurs when the request lacks valid authentication credentials or the credentials have expired.
-
ValidationError–One or more fields in the request failed validation. This error provides detailed information about which fields were invalid and why, allowing you to correct the request and retry.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
Test OIDC config successfully
>>> await client.register_oidc_config_test(network_id='12345678', issuer='https://login.example.com', scopes='openid profile email')
Test OIDC config - missing issuer
>>> await client.register_oidc_config_test(network_id='12345678', issuer='', scopes='openid profile email')
Test OIDC config - invalid endpoint
>>> await client.register_oidc_config_test(network_id='12345678', issuer='https://blocked-endpoint.com', scopes='openid profile email')
Source code in docs_src/capo_wickr/_services/async_wickr.py
3159 3160 3161 3162 3163 3164 3165 3166 3167 3168 3169 3170 3171 3172 3173 3174 3175 3176 3177 3178 3179 3180 3181 3182 3183 3184 3185 3186 3187 3188 3189 3190 3191 3192 3193 3194 3195 3196 3197 3198 3199 3200 3201 3202 3203 3204 3205 3206 3207 3208 3209 3210 3211 3212 3213 3214 3215 3216 3217 3218 3219 3220 3221 3222 3223 3224 3225 3226 3227 3228 3229 3230 3231 3232 3233 3234 3235 3236 | |