Skip to content

Commit

Permalink
Merge pull request #1612 from Permify/fix/oidc-backoff-frequency-desc…
Browse files Browse the repository at this point in the history
…ription

docs(oidc): add description for backoff_frequency argument
  • Loading branch information
tolgaOzen authored Sep 20, 2024
2 parents 44c4697 + 02902e4 commit eb8c915
Showing 1 changed file with 13 additions and 10 deletions.
23 changes: 13 additions & 10 deletions docs/setting-up/configuration.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,7 @@ authentication.
| ├── audience
| ├── refresh_interval
| ├── backoff_interval
| ├── backoff_frequency
| ├── backoff_max_retries
| ├── valid_methods
```
Expand All @@ -278,21 +279,23 @@ authentication.
| [x] | issuer | - | This is the URL of the provider that is responsible for authenticating users. You will use this URL to discover information about the provider in step 1 of the authentication process. |
| [x] | refresh_interval | 15m | The interval at which the authentication information should be refreshed to ensure that it remains valid and up-to-date. |
| [x] | backoff_interval | 12s | The delay between retries when attempting to authenticate if the key is not found. The system will retry at intervals, which may vary, to avoid constant retry attempts. |
| [x] | backoff_frequency | - | The duration to wait before retrying after a failed authentication attempt. This helps to manage the load on the authentication service by introducing a delay between retries, ensuring that repeated failures do not overwhelm the service or lead to excessive requests. This value should be configured according to the expected response times and reliability of the authentication provider. |
| [x] | backoff_max_retries | 5 | The maximum number of retry attempts to make if key is not found. |
| [x] | valid_methods | ["RS256","HS256"] | A list of accepted signing methods for tokens. This ensures that only tokens signed using one of the specified algorithms will be considered valid. |

#### ENV

| Argument | ENV | Type |
|--------------------------------|-------------------------------------|---------------|
| authn-enabled | PERMIFY_AUTHN_ENABLED | boolean |
| authn-method | PERMIFY_AUTHN_METHOD | string |
| authn-oidc-issuer | PERMIFY_AUTHN_OIDC_ISSUER | string |
| authn-oidc-audience | PERMIFY_AUTHN_OIDC_AUDIENCE | string |
| authn-oidc-refresh-interval | PERMIFY_AUTHN_OIDC_REFRESH_INTERVAL | duration |
| authn-oidc-backoff-interval | PERMIFY_AUTHN_OIDC_BACKOFF_INTERVAL | duration |
| authn-oidc-backoff-max-retries | PERMIFY_AUTHN_OIDC_BACKOFF_RETRIES | int |
| authn-oidc-valid-methods | PERMIFY_AUTHN_OIDC_VALID_METHODS | string array |
| Argument | ENV | Type |
|---------------------------------|--------------------------------------|---------------|
| authn-enabled | PERMIFY_AUTHN_ENABLED | boolean |
| authn-method | PERMIFY_AUTHN_METHOD | string |
| authn-oidc-issuer | PERMIFY_AUTHN_OIDC_ISSUER | string |
| authn-oidc-audience | PERMIFY_AUTHN_OIDC_AUDIENCE | string |
| authn-oidc-refresh-interval | PERMIFY_AUTHN_OIDC_REFRESH_INTERVAL | duration |
| authn-oidc-backoff-interval | PERMIFY_AUTHN_OIDC_BACKOFF_INTERVAL | duration |
| authn-oidc-backoff-frequency | PERMIFY_AUTHN_OIDC_BACKOFF_FREQUENCY | duration |
| authn-oidc-backoff-max-retries | PERMIFY_AUTHN_OIDC_BACKOFF_RETRIES | int |
| authn-oidc-valid-methods | PERMIFY_AUTHN_OIDC_VALID_METHODS | string array |

</Accordion>

Expand Down

0 comments on commit eb8c915

Please sign in to comment.