comparison Plugin/DefaultConfiguration.json @ 72:e381ba725669

new PUT auth/tokens/{token-type} API route + updated interface with WebService
author Alain Mazy <am@osimis.io>
date Fri, 24 Feb 2023 18:13:36 +0100
parents 30fb3ce960d9
children 512247750f0a
comparison
equal deleted inserted replaced
71:30fb3ce960d9 72:e381ba725669
1 { 1 {
2 "Authorization" : { 2 "Authorization" : {
3 // The URL of the auth webservice implementing resource level authorization (optional if not implementing resource based permissions) 3 // The Base URL of the auth webservice. This is an alias for all 3 next configurations:
4 // "WebService" : "http://change-me:8000/validate", 4 // // "WebServiceUserProfileUrl" : " ROOT /user/get-profile",
5 5 // // "WebServiceTokenValidationUrl" : " ROOT /tokens/validate",
6 // The URL of the auth webservice implementing resource level authorization (optional if not implementing user-permissions) 6 // // "WebServiceTokenCreationBaseUrl" : " ROOT /tokens/",
7 // "WebServiceUserProfileUrl" : "http://change-me:8000/user-profile", 7 // "WebServiceRootUrl" : "http://change-me:8000/",
8
9 // The URL of the auth webservice route implementing user profile (optional)
10 // (this configuration was previously named "WebService" and its old name is still accepted
11 // for backward compatibility)
12 // "WebServiceUserProfileUrl" : "http://change-me:8000/user/profile",
13
14 // The URL of the auth webservice route implementing resource level authorization (optional)
15 // "WebServiceTokenValidationUrl" : "http://change-me:8000/tokens/validate",
16
17 // The Base URL of the auth webservice route to create tokens (optional)
18 // "WebServiceTokenCreationBaseUrl" : "http://change-me:8000/tokens/",
8 19
9 // The username and password to connect to the webservice (optional) 20 // The username and password to connect to the webservice (optional)
10 //"WebServiceUsername": "change-me", 21 //"WebServiceUsername": "change-me",
11 //"WebServicePassword": "change-me", 22 //"WebServicePassword": "change-me",
12 23
30 //"UncheckedFolders" : [], 41 //"UncheckedFolders" : [],
31 //"CheckedLevel" : "studies", 42 //"CheckedLevel" : "studies",
32 //"UncheckedLevels" : [], 43 //"UncheckedLevels" : [],
33 44
34 // Definition of required "user-permissions". This can be fully customized. 45 // Definition of required "user-permissions". This can be fully customized.
35 // You may define other permissions yourself as long as they mathc the permissions 46 // You may define other permissions yourself as long as they match the permissions
36 // provided in the user-profile route implemented by the auth-service. 47 // provided in the user-profile route implemented by the auth-service.
37 // You may test your regex in https://regex101.com/ by selecting .NET (C#) and removing the leading ^ and trailing $ 48 // You may test your regex in https://regex101.com/ by selecting .NET (C#) and removing the leading ^ and trailing $
38 // The default configuration is suitable for Orthanc-Explorer-2 (see TBD sample) 49 // The default configuration is suitable for Orthanc-Explorer-2 (see TBD sample)
39 "Permissions" : [ 50 "Permissions" : [
40 // elemental browsing in OE2 51 // elemental browsing in OE2