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:
parent
c995767de5
commit
cdc18fd547
12 changed files with 3158 additions and 92 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue