@@ -50,8 +50,7 @@ TILED_SINGLE_USER_API_KEY=YOUR_SECRET tiled serve ...
5050or via the configuration parameter
5151
5252``` yaml
53- authentication :
54- single_user_api_key : " ..."
53+ single_user_api_key : " ..."
5554` ` `
5655
5756When the secret is set manually it this way, it is *not* logged in the terminal.
@@ -102,16 +101,14 @@ tiled serve config ...
102101include the configuration:
103102
104103``` yaml
105- authentication :
106- allow_anonymous_access : true
104+ allow_anonymous_access : true
107105` ` `
108106
109107This is a complete working example:
110108
111109` ` ` yaml
112110# config.yml
113- authentication :
114- allow_anonymous_access : true
111+ allow_anonymous_access : true
115112trees :
116113 - path : /
117114 tree : tiled.examples.generated_minimal:tree
@@ -175,20 +172,18 @@ pip install pamela
175172The configuration file(s) should include:
176173
177174``` yaml
178- authentication :
179- authenticator : tiled.authenticators:PAMAuthenticator
175+ authenticator : tiled.authenticators:PAMAuthenticator
180176` ` `
181177
182178Here is a complete working example:
183179
184180` ` ` yaml
185181# pam_config.yml
186- authentication :
187- providers :
188- - authenticator : tiled.authenticators:PAMAuthenticator
189- # This 'provider' can be any string; it is used to differentiate
190- # authentication providers when multiple ones are supported.
191- provider : local
182+ providers :
183+ - authenticator : tiled.authenticators:PAMAuthenticator
184+ # This 'provider' can be any string; it is used to differentiate
185+ # authentication providers when multiple ones are supported.
186+ provider : local
192187trees :
193188 - path : /
194189 tree : tiled.examples.generated_minimal:tree
@@ -248,19 +243,18 @@ pip install httpx
248243The configuration file(s) must include the following.
249244
250245``` yaml
251- authentication :
252- providers :
253- - provider : example.com
254- authenticator : tiled.authenticators:OIDCAuthenticator
255- args :
256- # Values should come from your OIDC provider configuration
257- # The audience claim is checked by the OIDC Client (Tiled)
258- # It checks that the Authentication header that you are passed has not been intercepted
259- # And that elevated claims from other services do not apply here
260- audience : tiled # something unique to ensure received headers are for you
261- client_id : tiled_client
262- client_secret : ${OIDC_CLIENT_SECRET} # referencing an environment variable
263- well_known_uri : example.com/.well-known/openid-configuration
246+ providers :
247+ - provider : example.com
248+ authenticator : tiled.authenticators:OIDCAuthenticator
249+ args :
250+ # Values should come from your OIDC provider configuration
251+ # The audience claim is checked by the OIDC Client (Tiled)
252+ # It checks that the Authentication header that you are passed has not been intercepted
253+ # And that elevated claims from other services do not apply here
254+ audience : tiled # something unique to ensure received headers are for you
255+ client_id : tiled_client
256+ client_secret : ${OIDC_CLIENT_SECRET} # referencing an environment variable
257+ well_known_uri : example.com/.well-known/openid-configuration
264258` ` `
265259
266260There are example configurations for ORCID and Google in the directory
@@ -279,15 +273,14 @@ should only for used for development and demos.
279273
280274` ` ` yaml
281275# dictionary_config.yml
282- authentication:
283- providers:
284- - provider: toy
285- authenticator: tiled.authenticators:DictionaryAuthenticator
286- args:
287- users_to_passwords:
288- alice: ${ALICE_PASSWORD}
289- bob: ${BOB_PASSWORD}
290- cara: ${CARA_PASSWORD}
276+ providers:
277+ - provider: toy
278+ authenticator: tiled.authenticators:DictionaryAuthenticator
279+ args:
280+ users_to_passwords:
281+ alice: ${ALICE_PASSWORD}
282+ bob: ${BOB_PASSWORD}
283+ cara: ${CARA_PASSWORD}
291284trees:
292285 - path: /
293286 tree: tiled.examples.generated_minimal:tree
@@ -301,10 +294,9 @@ The ``DummyAuthenticator`` accepts *any* username and password combination.
301294
302295```yaml
303296# dummy_config.yml
304- authentication:
305- providers:
306- - provider: toy
307- authenticator: tiled.authenticators:DummyAuthenticator
297+ providers:
298+ - provider: toy
299+ authenticator: tiled.authenticators:DummyAuthenticator
308300trees:
309301 - path: /
310302 tree: tiled.examples.generated_minimal:tree
@@ -326,8 +318,7 @@ To make such entries visible to *anonymous*, unauthenticated users as well,
326318include the configuration:
327319
328320``` yaml
329- authentication :
330- allow_anonymous_access : true
321+ allow_anonymous_access : true
331322` ` `
332323
333324See also {doc}` ../reference/service-configuration`.
0 commit comments