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

Added endpoint refresh token #129

Merged
merged 3 commits into from
Nov 24, 2024
Merged

Added endpoint refresh token #129

merged 3 commits into from
Nov 24, 2024

Conversation

LauroSilveira
Copy link
Owner

No description provided.

-  Implemented RefreshToken endpoint
-  Implemented AuthenticationEntryPoint to redirect JWT exceptions
-  Adjusted tests
@@ -11,13 +11,13 @@
mongodb:
database: alura-flix
# always commit the uri like this: ${DATABASE_PRO}
uri: ${DATABASE_PRO}
uri: ${DATABASE_PRO:mongodb+srv://alura-flix-admin:1DXxIsejY5RENHAU@alura-flix.z61opfc.mongodb.net/?retryWrites=true&w=majority}

Check failure

Code scanning / SonarCloud

MongoDB database passwords should not be disclosed High

Make sure this MongoDB database password gets changed and removed from the code. See more on SonarQube Cloud
@LauroSilveira
Copy link
Owner Author

Overall Project 73.89% -0.25% 🍏
Files changed 0%

File Coverage
TokenService.java 65.22% 🍏
JwtRefreshTokenExpiredException.java 0%

@LauroSilveira
Copy link
Owner Author

Overall Project 73.89% -0.25% 🍏
Files changed 0%

File Coverage
TokenService.java 65.22% 🍏
JwtRefreshTokenExpiredException.java 0%

@LauroSilveira
Copy link
Owner Author

Overall Project 73.89% -0.25% 🍏
Files changed 0%

File Coverage
TokenService.java 65.22% 🍏
JwtRefreshTokenExpiredException.java 0%

# Conflicts:
#	src/main/java/com/alura/aluraflixapi/controller/authentication/AuthenticationControllerAdvice.java
#	src/main/java/com/alura/aluraflixapi/infraestructure/security/SecurityConfigurations.java
#	src/main/java/com/alura/aluraflixapi/infraestructure/security/TokenService.java
Copy link

sonarcloud bot commented Nov 24, 2024

@LauroSilveira
Copy link
Owner Author

Overall Project 73.89% -0.25% 🍏
Files changed 0%

File Coverage
TokenService.java 65.22% 🍏
JwtRefreshTokenExpiredException.java 0%

@LauroSilveira LauroSilveira merged commit d98f727 into main Nov 24, 2024
4 checks passed
@LauroSilveira LauroSilveira deleted the feature/add-refresh-token branch November 24, 2024 21:46
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.

1 participant