Skip to content

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