{
  "realm": "photoz",
  "realm-public-key": "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCrVrCuTtArbgaZzL1hvh0xtL5mc7o0NqPVnYXkLvgcwiC3BjLGw1tGEGoJaXDuSaRllobm53JBhjx33UNv+5z/UMG4kytBWxheNVKnL6GgqlNabMaFfPLPCF8kAgKnsi79NMo+n6KnSY8YeUmec/p2vjO2NjsSAVcWEQMVhJ31LwIDAQAB",
  "auth-server-url": "http://localhost:8080/auth",
  "ssl-required": "external",
  "resource": "photoz-restful-api",
  "bearer-only" : true,
  "credentials": {
    "secret": "secret"
  },
  "policy-enforcer": {
    "paths": [
      {
        "path" : "/album/*",
        "methods" : [
          {
            "method": "GET",
            "scopes" : ["urn:photoz.com:scopes:album:view"]
          },
          {
            "method": "POST",
            "scopes" : ["urn:photoz.com:scopes:album:create"]
          }
        ]
      },
      {
        "name" : "Album Resource",
        "path" : "/album/{id}",
        "methods" : [
          {
            "method": "DELETE",
            "scopes" : ["urn:photoz.com:scopes:album:delete"]
          }
        ]
      },
      {
        "path" : "/profile"
      },
      {
        "name" : "Admin Resources",
        "path" : "/admin/*"
      }
    ]
  }
}