Circles, pub & auth

* Adds a boolean to each Circle, saying that
  it is public, and its existence may be known by any interested in
* Adds claims of type "YavscClaimTypes.CircleMembership" at
  login, in order to implement some faster authorisation processes and file restricted accesses.
This commit is contained in:
Paul Schneider 2019-07-30 18:42:22 +02:00
commit cdc18fd547
12 changed files with 3158 additions and 92 deletions

View file

@ -69,7 +69,8 @@ namespace Yavsc.Controllers
var accepted = Request.Headers["Accept"];
if (accepted.Contains("application/json"))
{
return new BadRequestObjectResult(new { error = this.HttpContext.Items } );
_logger.LogError("Invalid http status at authorisation");
return new BadRequestObjectResult(new { error = Response.StatusCode} );
}
}
@ -145,6 +146,7 @@ namespace Yavsc.Controllers
var accepted = Request.Headers["Accept"];
if (accepted.Contains("application/json"))
{
_logger.LogInformation("serving available scopes");
return Ok(model);
}
}