Skip to content

Commit 6af3971

Browse files
committed
minor docs update + exception fix
1 parent 9bdb2cc commit 6af3971

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

docs/en/operations/external-authenticators/index.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,4 @@ The following external authenticators and directories are supported:
1919
- Kerberos [Authenticator](/operations/external-authenticators/kerberos#kerberos-as-an-external-authenticator-for-existing-users)
2020
- [SSL X.509 authentication](/operations/external-authenticators/ssl-x509)
2121
- HTTP [Authenticator](./http.md)
22-
- JWT [Authenticator](./jwt.md)
23-
- Access Token [Authenticator](./tokens.md)
22+
- Token-based [Authenticator](./tokens.md)

docs/en/operations/external-authenticators/tokens.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,9 @@ All this implies that the SQL-driven [Access Control and Account Management](/do
213213
<common_roles>
214214
<token_test_role_1 />
215215
</common_roles>
216-
<roles_filter></roles_filter>
216+
<roles_filter>
217+
\bclickhouse-[a-zA-Z0-9]+\b
218+
</roles_filter>
217219
</token>
218220
</user_directories>
219221
</clickhouse>

src/Access/ExternalAuthenticators.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -649,7 +649,7 @@ bool ExternalAuthenticators::checkTokenCredentials(const TokenCredentials & cred
649649
std::lock_guard lock{mutex};
650650

651651
if (token_processors.empty())
652-
throw Exception(ErrorCodes::BAD_ARGUMENTS, "Access token authentication is not configured");
652+
throw Exception(ErrorCodes::BAD_ARGUMENTS, "Token authentication is not configured");
653653

654654
/// lookup token in local cache if not expired.
655655
auto cached_entry_iter = access_token_to_username_cache.find(credentials.getToken());

0 commit comments

Comments
 (0)