Open mtseD2L opened 8 years ago
Nah we can definitely do better than that. There may also be OAuth 2.0 mandated errors for those scenarios (see also #39 )
I think we need to figure out a strategy for how to deal with exceptions across services and libraries. I'm gonna write a little proposal.
If a controller / route(?) is marked with
[Authentication( users: true )]
, but a service-level token is provided, the client is presented with `{"Message":"Authorization has been denied for this request."} in the response.(Not sure if there are any security concerns with explaining why).
Versions used: