Skip to content

Create project context from header and authorize based on user context#16

Closed
myieye wants to merge 2 commits into
mainfrom
feat/create-and-authorize-project-context-from-header
Closed

Create project context from header and authorize based on user context#16
myieye wants to merge 2 commits into
mainfrom
feat/create-and-authorize-project-context-from-header

Conversation

@myieye

@myieye myieye commented Jan 30, 2023

Copy link
Copy Markdown
Contributor

Fixes #15

Alternative to #14, now setting the project-code as a header required via Filter Attribute.

@myieye myieye self-assigned this Jan 30, 2023
@myieye myieye force-pushed the feat/create-and-authorize-project-context-from-header branch from 4592f3f to 6b0c614 Compare January 30, 2023 16:50

@myieye myieye left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@hahn-kev There are still a few more quirks for you to comment on 😉

Comment thread backend/WebApi/Validation/RequireProjectCodeFilter.cs Outdated
Comment thread backend/WebApi/WebApiKernel.cs
Comment thread backend/UnitTests/WebApi/Validation/RequireProjectCodeFilterTest.cs Outdated
Comment thread backend/UnitTests/WebApi/Validation/RequireProjectCodeFilterTest.cs Outdated
Comment thread backend/WebApi/WebApiKernel.cs
Comment thread backend/WebApi/Validation/RequireProjectCodeFilter.cs Outdated
@myieye

myieye commented Feb 10, 2023

Copy link
Copy Markdown
Contributor Author

We've put the project-ID in the path.

@myieye myieye closed this Feb 10, 2023
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.

Create project context from current route and use for authorize check

2 participants