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

spring-security/docs/modules/ROOT/pages/servlet/authorization /method-security #15045

Closed
douxiaofeng99 opened this issue May 11, 2024 · 2 comments
Assignees
Labels
in: docs An issue in Documentation or samples type: bug A general bug
Milestone

Comments

@douxiaofeng99
Copy link

douxiaofeng99 commented May 11, 2024

Describe the bug
In the method-security document, the Enabling Certain Annotations, should use AuthorizationManagerAfterMethodInterceptor.

@Configuration
@EnableMethodSecurity(prePostEnabled = false)
class MethodSecurityConfig {
	@Bean
	@Role(BeanDefinition.ROLE_INFRASTRUCTURE)
	Advisor postAuthorize() {
		return AuthorizationManagerBeforeMethodInterceptor.postAuthorize();
	}
}

To Reproduce
Steps to reproduce the behavior.

Expected behavior
A clear and concise description of what you expected to happen.

Sample

A link to a GitHub repository with a minimal, reproducible sample.

Reports that include a sample will take priority over reports that do not.
image

At times, we may require a sample, so it is good to try and include a sample up front.

@douxiaofeng99 douxiaofeng99 added status: waiting-for-triage An issue we've not yet triaged type: bug A general bug labels May 11, 2024
@sjohnr
Copy link
Member

sjohnr commented May 14, 2024

@douxiaofeng99 thanks for the report. Would you like to submit a PR to fix the docs?

@sjohnr sjohnr added in: docs An issue in Documentation or samples and removed status: waiting-for-triage An issue we've not yet triaged labels May 14, 2024
@sjohnr sjohnr self-assigned this May 14, 2024
@douxiaofeng99
Copy link
Author

summited a PR to fix the docs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: docs An issue in Documentation or samples type: bug A general bug
Projects
None yet
Development

No branches or pull requests

3 participants