Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create a mix of ScopesRequiredHttpContextExtensions and RolesRequired… #1814

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

BluMichele
Copy link
Contributor

…HttpContextExtensions

@ghost
Copy link

ghost commented Jul 19, 2022

CLA assistant check
All CLA requirements met.

@BluMichele BluMichele mentioned this pull request Jul 19, 2022
3 tasks
using Bludata.Blu.Web.Security.Entities;
using Bludata.Blu.Web.Security.Interface;

namespace Bludata.Blu.Web.Security.Utils;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

namespace needs to be updated and using removed.
please add license info like we have on other classes

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did it, thanks for letting me know. Hope it will be useful.

@jennyf19
Copy link
Collaborator

thanks for this @BluMichele. We have something similar on the attributes and will need to test once you have updated the file. It will take us sometime to circle back on this, just an FYI.

lock (context)
{
context.Response.StatusCode = (int)HttpStatusCode.Forbidden;
context.Response.WriteAsync(message);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should rather set that in an ErrorDescription header or www-Authenticate header, maybe (and not WriteAsync / CompleteAsync())

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants