# flytekit.clients.auth.keyring

## Directory

### Classes

| Class | Description |
|-|-|
| [`Credentials`](https://www.union.ai/docs/v1/union/api-reference/flytekit-sdk/packages/flytekit.clients.auth.keyring/page.md#flytekitclientsauthkeyringcredentials) | Stores the credentials together. |
| [`KeyringStore`](https://www.union.ai/docs/v1/union/api-reference/flytekit-sdk/packages/flytekit.clients.auth.keyring/page.md#flytekitclientsauthkeyringkeyringstore) | Methods to access Keyring Store. |

## flytekit.clients.auth.keyring.Credentials

Stores the credentials together

### Parameters

```python
class Credentials(
    access_token: str,
    refresh_token: typing.Optional[str],
    for_endpoint: str,
    expires_in: typing.Optional[int],
    id_token: typing.Optional[str],
)
```
| Parameter | Type | Description |
|-|-|-|
| `access_token` | `str` | |
| `refresh_token` | `typing.Optional[str]` | |
| `for_endpoint` | `str` | |
| `expires_in` | `typing.Optional[int]` | |
| `id_token` | `typing.Optional[str]` | |

## flytekit.clients.auth.keyring.KeyringStore

Methods to access Keyring Store.

### Methods

| Method | Description |
|-|-|
| [`delete()`](#delete) |  |
| [`retrieve()`](#retrieve) |  |
| [`store()`](#store) |  |

#### delete()

```python
def delete(
    for_endpoint: str,
)
```
| Parameter | Type | Description |
|-|-|-|
| `for_endpoint` | `str` | |

#### retrieve()

```python
def retrieve(
    for_endpoint: str,
) -> typing.Optional[flytekit.clients.auth.keyring.Credentials]
```
| Parameter | Type | Description |
|-|-|-|
| `for_endpoint` | `str` | |

#### store()

```python
def store(
    credentials: flytekit.clients.auth.keyring.Credentials,
) -> flytekit.clients.auth.keyring.Credentials
```
| Parameter | Type | Description |
|-|-|-|
| `credentials` | `flytekit.clients.auth.keyring.Credentials` | |

---
**Source**: https://github.com/unionai/unionai-docs/blob/main/content/api-reference/flytekit-sdk/packages/flytekit.clients.auth.keyring.md
**HTML**: https://www.union.ai/docs/v1/union/api-reference/flytekit-sdk/packages/flytekit.clients.auth.keyring/
