Skip to content

Add Authorization post - #10

Merged
mconnew merged 8 commits into
CoreWCF:mainfrom
g7ed6e:authorization-post
Apr 19, 2023
Merged

Add Authorization post#10
mconnew merged 8 commits into
CoreWCF:mainfrom
g7ed6e:authorization-post

Conversation

@g7ed6e

Copy link
Copy Markdown
Contributor

No description provided.

@g7ed6e
g7ed6e marked this pull request as ready for review December 7, 2022 12:37
Comment thread_posts/2022-12-07-aspnetcore-authorization-support.markdown Outdated
Comment thread_posts/2022-12-07-aspnetcore-authorization-support.markdown Outdated
- `Roles` property is not supported and will trigger a build warning `COREWCF_0202`.

#### AllowAnonymous support
We did not bring support of the `[AllowAnonymous]` attribute as we believe that a strong interface segregation between anonymous and secured operations should be set. Moreover supporting this attribute would imply delaying the authentication step in the pipeline leading to potential DDoS vulnerabilities. Decorating an `OperationContract` implementation with `[AllowAnonymous]` will have no effect and will trigger a build warning `COREWCF_0200`.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

DDoS -> DoS
DDoS generally refers to an attack which relies on flooding the bandwidth of the service (which is why you need lots of clients), or circumventing protections preventing single ip addresses from making too many requests. The nature of the potential vulnerability here doesn't need a distributed attack.

Comment thread_posts/2022-12-07-aspnetcore-authorization-support.markdown Outdated

### Exclusiveness of ASP.NET Core Authorization policies and `ServiceAuthorizationManager`

Having `ClientCredentialType` set to `InheritedFromHost` disable the execution of an authorization logic implemented in `ServiceAuthorizationManager`.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

disable -> disables

Comment thread_posts/2022-12-07-aspnetcore-authorization-support.markdown Outdated
@g7ed6e
g7ed6e marked this pull request as draft January 2, 2023 08:45
@g7ed6e

g7ed6e commented Jan 2, 2023

Copy link
Copy Markdown
ContributorAuthor

TODO Add a link to the sample from CoreWCF/samples#29 once merged

When quoting class names with back ticks in section headings it renders strange as the class name is rendered in a lot smaller font.
@mconnew
mconnew merged commit b6ff2c8 into CoreWCF:mainApr 19, 2023
Sign up for freeto 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.

2 participants

@g7ed6e@mconnew