{
   "HttpClient":{
      "TimeoutSeconds":10
   },
   "DevelopmentAllowAllOrigins":true,
   "Serilog":{
      "Using":[
         "Serilog.Sinks.Console"
      ],
      "MinimumLevel":{
         "Default":"Information",
         "Override":{
            "Duende.IdentityServer":"Information",
            "CMI":"Debug",
            "System":"Warning",
            "Microsoft":"Warning",
            "Microsoft.Hosting.Lifetime":"Information",
            "Microsoft.AspNetCore.Authentication":"Information"
         }
      },
      "WriteTo":[
         {
            "Name":"Console",
            "Args":{
               "theme":"Serilog.Sinks.SystemConsole.Themes.AnsiConsoleTheme::Code, Serilog.Sinks.Console",
               "outputTemplate":"[{Timestamp:HH:mm:ss} {Level}] <{ThreadId}> {SourceContext}{NewLine}{Message:lj}{NewLine}{Exception}{NewLine}"
            }
         }
      ],
      "Enrich":[
         "FromLogContext",
         "WithMachineName",
         "WithThreadId"
      ],
      "Properties":{
         "Application":"CMI.STS3"
      }
   },
   "tenants":{
      "dev":{
         "CmiPrivateUri":"http://localhost:10003",
         "Clients":[
            {
               "ClientId":"webdav",
               "AccessTokenLifetime":36000,
               "AllowAccessTokensViaBrowser":true,
               "AllowedGrantTypes":[
                  "delegation",
                  "implicit"
               ],
               "RedirectUris":[
                  "regex:^(.*)"
               ],
               "AllowedScopes":[
                  "openid",
                  "profile",
                  "metatool"
               ],
               "ClientSecrets":[
                  {
                     "value":"684a5f936b784fe17af79f0054d0dd72b4b6818bee24ac46f3c720c53fa4349525dda61f9cb5287ae7fca4ae4e7f545a68b49748ce8e2fe4e0172a57f27bf4c6",
                     "description":"dev"
                  }
               ]
            },
            {
               "ClientId":"webAppClient",
               "AccessTokenLifetime":43200,
               "AllowedGrantTypes":[
                  "implicit"
               ],
               "AllowAccessTokensViaBrowser":true,
               "RedirectUris":[
                  "regex:^(.*)"
               ],
               "PostLogoutRedirectUris":[
                  "regex:^(.*)"
               ],
               "AllowOfflineAccess":true,
               "AllowedScopes":[
                  "openid",
                  "profile",
                  "metatool"
               ]
            },
            {
               "ClientId":"metatool",
               "AccessTokenLifetime":43200,
               "AllowedGrantTypes":[
                  "implicit"
               ],
               "ProtocolType":"oidc",
               "AllowAccessTokensViaBrowser":true,
               "RedirectUris":[
                  "oob://metatool/callback"
               ],
               "PostLogoutRedirectUris":[
                  "oob://metatool/logout"
               ],
               "AllowOfflineAccess":true,
               "AllowedScopes":[
                  "openid",
                  "profile",
                  "metatool"
               ]
            },
            {
               "ClientId":"appClient",
               "AllowedGrantTypes":[
                  "implicit"
               ],
               "ProtocolType":"oidc",
               "AllowAccessTokensViaBrowser":true,
               "AccessTokenLifetime":43200,
               "RedirectUris":[
                  "regex:^(.*)"
               ],
               "PostLogoutRedirectUris":[
                  "file:///android_asset/www/view/auth.html#/sts?logout",
                  "http://localhost:8080/www/view/auth.html#/sts?logout"
               ],
               "AllowOfflineAccess":true,
               "AllowedScopes":[
                  "openid",
                  "profile",
                  "metatool"
               ]
            },
            {
               "ClientId":"pushServiceClient",
               "AllowedGrantTypes":[
                  "client_credentials"
               ],
               "ProtocolType":"oidc",
               "AllowAccessTokensViaBrowser":false,
               "AllowOfflineAccess":true,
               "ClientSecrets":[
                  {
                     "value":"684a5f936b784fe17af79f0054d0dd72b4b6818bee24ac46f3c720c53fa4349525dda61f9cb5287ae7fca4ae4e7f545a68b49748ce8e2fe4e0172a57f27bf4c6",
                     "description":"dev"
                  }
               ],
               "ClientCredentialsBackendUser":{
                  "username":"pushServiceAdmin",
                  "password":"dev"
               },
               "AllowedScopes":[
                  "push-api",
                  "metatool"
               ]
            }
         ]
      }
   }
}
