Skip to content

Conversation

@g7ed6e
Copy link
Contributor

@g7ed6e g7ed6e commented Oct 28, 2022

No description provided.

@g7ed6e g7ed6e force-pushed the authorization-post branch from 851506f to b8c66af Compare October 28, 2022 13:17
@g7ed6e g7ed6e force-pushed the authorization-post branch from b8c66af to d36035c Compare November 16, 2022 17:13
@g7ed6e g7ed6e force-pushed the authorization-post branch from d36035c to 5884e5e Compare December 7, 2022 12:37
@g7ed6e g7ed6e marked this pull request as ready for review December 7, 2022 12:37
@g7ed6e g7ed6e force-pushed the authorization-post branch from 5884e5e to efda16f Compare December 7, 2022 12:39
@g7ed6e g7ed6e force-pushed the authorization-post branch from efda16f to 3438740 Compare December 7, 2022 15:21
- `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
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.


### 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
Member

Choose a reason for hiding this comment

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

disable -> disables

@g7ed6e g7ed6e marked this pull request as draft January 2, 2023 08:45
@g7ed6e
Copy link
Contributor Author

g7ed6e commented Jan 2, 2023

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

@g7ed6e g7ed6e force-pushed the authorization-post branch from b230669 to 19f5aec Compare February 19, 2023 09:02
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:main Apr 19, 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.

2 participants