with_stored_token#
- OIDCSessionBuilder.with_stored_token(token_name='ansys-openapi-common-oidc')#
Use a token stored in the system keyring to authenticate the session.
This method requires a correctly configured system keyring backend.
- Parameters:
- token_name
str
Name of the token key in the system keyring.
- token_name
- Returns:
ApiClientFactory
Original client factory object.
- Raises:
ValueError
If no token is found in the system keyring with the provided
token_name
.