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

feat: P4PU-170 added login endpoint #29

Merged
merged 7 commits into from
Jul 18, 2024

Conversation

oleksiybozhykntt
Copy link
Collaborator

List of Changes

added login endpoint
added spring security
added juinit tests

Motivation and Context

How Has This Been Tested?

YES

Screenshots (if appropriate):

Types of changes

Checklist:

Comment on lines 14 to 22
http
.oauth2Login(oauth2Login -> oauth2Login
.authorizationEndpoint(authConfig -> authConfig.baseUri("/login"))
.redirectionEndpoint(redirection -> redirection.baseUri("/token/*"))
)
.authorizeHttpRequests((authorize) -> authorize
.anyRequest()
.permitAll())
.csrf( AbstractHttpConfigurer::disable );

Check failure

Code scanning / CodeQL

Disabled Spring CSRF protection High

CSRF vulnerability due to protection being disabled.
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
0.0% Coverage on New Code (required ≥ 80%)

See analysis details on SonarCloud

@and-mora and-mora marked this pull request as ready for review July 18, 2024 13:21
@and-mora and-mora requested a review from a team as a code owner July 18, 2024 13:21
@and-mora and-mora merged commit 0b0fc0a into develop Jul 18, 2024
6 of 7 checks passed
@and-mora and-mora deleted the P4PU-170-esporre-endpoint-login-spring-sec branch July 18, 2024 13:27
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