An open API service indexing awesome lists of open source software.

https://github.com/nitor-infotech-oss/java-spring-cognito-starter

This repo will contain code base for getting started with Spring Boot application with Cognito JWT verification. It will also contain other standard integration like Swagger and Liquibase
https://github.com/nitor-infotech-oss/java-spring-cognito-starter

Last synced: 7 months ago
JSON representation

This repo will contain code base for getting started with Spring Boot application with Cognito JWT verification. It will also contain other standard integration like Swagger and Liquibase

Awesome Lists containing this project

README

          

# java-spring-cognito-starter
This repo will contain code base for getting started with Spring Boot application with Cognito JWT verification. It will also contain other standard integration like Swagger and Liquibase.

### Cognito Starter
Code provides starter for AWS cognito authentication. We have to provide configuration details as aws-userPoolId and region in application.properties. [Congito](https://www.baeldung.com/spring-security-oauth-cognito)

### Swagger
Code Provides starter for Swagger which helps to group the APIs which implemented, To use Swagger you require to provide ApiInfo in JavaSpringCognitoStarter provide details of applications, Provide @ApiOperation Details to describe the API usage. And when we write APIs it will start reflecting on Url. [SwaggerUrl](http://localhost:port/swagger-ui.html#/)

### Liquibase:
Configured liquibase: Make sure liquibase enabled: true in application.properties. Provide database connection details url,username,password in liquibase proerties and check logger name logback.xml, Set Environment(spring.profile.active/dev) to dev while running application in dev environment. [Liquibase](https://docs.liquibase.com/)

### Spring security
Spring security provide security while accessing each URL every time when you try to reach out to the Page or try to access website you have to povide ID and Password(Once on login or it will valid till session timeout). Use @PreAuthorize, @hasAuhority to verify the user and role. [SpringSecurity](https://spring.io/projects/spring-security)

Use this coed as starter pack for spring project with AWS cognito security ready in state. we can modify the roles and access providing authority to the URL/APIs using @hasAuthority annotations. Used beared token as authentication purpouse.