get_oidc_info
async
¶
get_oidc_info(
network_id: NetworkId,
*,
config_overrides: Optional[AsyncWickrClientConfig] = None,
client_id: Optional[GenericString] = None,
code: Optional[GenericString] = None,
grant_type: Optional[GenericString] = None,
redirect_uri: Optional[GenericString] = None,
url: Optional[GenericString] = None,
client_secret: Optional[SensitiveString] = None,
code_verifier: Optional[GenericString] = None,
certificate: Optional[GenericString] = None,
) -> GetOidcInfoResponse
Retrieves the OpenID Connect (OIDC) configuration for a Wickr network, including SSO settings and optional token information if access token parameters are provided.
Parameters:
-
network_id(NetworkId) –The ID of the Wickr network whose OIDC configuration will be retrieved.
-
client_id(Optional[GenericString], default:None) –The OAuth client ID for retrieving access tokens (optional).
-
code(Optional[GenericString], default:None) –The authorization code for retrieving access tokens (optional).
-
grant_type(Optional[GenericString], default:None) –The OAuth grant type for retrieving access tokens (optional).
-
redirect_uri(Optional[GenericString], default:None) –The redirect URI for the OAuth flow (optional).
-
url(Optional[GenericString], default:None) –The URL for the OIDC provider (optional).
-
client_secret(Optional[SensitiveString], default:None) –The OAuth client secret for retrieving access tokens (optional).
-
code_verifier(Optional[GenericString], default:None) –The PKCE code verifier for enhanced security in the OAuth flow (optional).
-
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:
Get OIDC info successfully
Source code in docs_src/capo_wickr/_services/async_wickr.py
1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 | |