File tree Expand file tree Collapse file tree 14 files changed +44
-41
lines changed
src/main/java/com/assignment/apigatewayservice/security
src/main/java/com/assignment/authservice/security
main/java/com/javatab/commonservice
test/java/com/javatab/commonservice Expand file tree Collapse file tree 14 files changed +44
-41
lines changed Original file line number Diff line number Diff line change 33 xsi:schemaLocation=" http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" >
44 <modelVersion >4.0.0</modelVersion >
55
6+ <parent >
7+ <groupId >org.springframework.boot</groupId >
8+ <artifactId >spring-boot-starter-parent</artifactId >
9+ <version >2.2.5.RELEASE</version >
10+ <relativePath /> <!-- lookup parent from repository -->
11+ </parent >
12+
613 <groupId >com.assignment</groupId >
714 <artifactId >api-gateway-service</artifactId >
815 <version >0.0.1-SNAPSHOT</version >
1421 <spring-cloud .version>Hoxton.SR1</spring-cloud .version>
1522 </properties >
1623
17- <parent >
18- <groupId >org.springframework.boot</groupId >
19- <artifactId >spring-boot-starter-parent</artifactId >
20- <version >2.2.5.RELEASE</version >
21- <relativePath /> <!-- lookup parent from repository -->
22- </parent >
23-
2424 <dependencies >
2525 <dependency >
2626 <groupId >org.springframework.boot</groupId >
Original file line number Diff line number Diff line change 11package com .assignment .apigatewayservice .security ;
22
3- import com .assignment .commonservice .JwtConfig ;
3+ import com .javatab .commonservice .JwtConfig ;
44import io .jsonwebtoken .Claims ;
55import io .jsonwebtoken .Jwts ;
66import org .springframework .security .authentication .UsernamePasswordAuthenticationToken ;
Original file line number Diff line number Diff line change 11package com .assignment .apigatewayservice .security ;
22
3- import com .assignment .commonservice .JwtConfig ;
3+ import com .javatab .commonservice .JwtConfig ;
44import org .springframework .beans .factory .annotation .Autowired ;
55import org .springframework .context .annotation .Bean ;
66import org .springframework .http .HttpMethod ;
Original file line number Diff line number Diff line change 33 xsi:schemaLocation=" http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" >
44 <modelVersion >4.0.0</modelVersion >
55
6+ <parent >
7+ <groupId >org.springframework.boot</groupId >
8+ <artifactId >spring-boot-starter-parent</artifactId >
9+ <version >2.5.4</version >
10+ <relativePath /> <!-- lookup parent from repository -->
11+ </parent >
12+
613 <groupId >com.assignment</groupId >
714 <artifactId >auth-service</artifactId >
815 <version >0.0.1-SNAPSHOT</version >
1118
1219 <properties >
1320 <java .version>11</java .version>
14- <spring-cloud .version>Hoxton.SR1 </spring-cloud .version>
21+ <spring-cloud .version>2020.0.3 </spring-cloud .version>
1522 </properties >
1623
17- <parent >
18- <groupId >org.springframework.boot</groupId >
19- <artifactId >spring-boot-starter-parent</artifactId >
20- <version >2.2.5.RELEASE</version >
21- <relativePath /> <!-- lookup parent from repository -->
22- </parent >
24+
2325
2426 <dependencies >
2527 <dependency >
Original file line number Diff line number Diff line change 11package com .assignment .authservice .security ;
22
33import com .assignment .authservice .model .LoggedInUserDetails ;
4- import com .assignment .commonservice .JwtConfig ;
4+ import com .javatab .commonservice .JwtConfig ;
55import com .fasterxml .jackson .databind .ObjectMapper ;
66import com .google .gson .Gson ;
77import io .jsonwebtoken .Jwts ;
Original file line number Diff line number Diff line change 11package com .assignment .authservice .security ;
22
3- import com .assignment .commonservice .JwtConfig ;
3+ import com .javatab .commonservice .JwtConfig ;
44import org .springframework .beans .factory .annotation .Autowired ;
55import org .springframework .context .annotation .Bean ;
66import org .springframework .http .HttpMethod ;
Original file line number Diff line number Diff line change 55 <parent >
66 <groupId >org.springframework.boot</groupId >
77 <artifactId >spring-boot-starter-parent</artifactId >
8- <version >2.1.5.RELEASE </version >
8+ <version >2.5.4 </version >
99 <relativePath /> <!-- lookup parent from repository -->
1010 </parent >
11- <groupId >com.assignment </groupId >
11+ <groupId >com.javatab </groupId >
1212 <artifactId >common-service</artifactId >
1313 <version >0.0.1-SNAPSHOT</version >
1414 <name >common-service</name >
1515 <description >Demo project for Spring Boot</description >
1616
1717 <properties >
1818 <java .version>1.8</java .version>
19- <spring-cloud .version>Greenwich.SR1 </spring-cloud .version>
19+ <spring-cloud .version>2020.0.3 </spring-cloud .version>
2020 </properties >
2121
2222 <dependencies >
Original file line number Diff line number Diff line change 1- package com .assignment .commonservice ;
1+ package com .javatab .commonservice ;
22
33import org .springframework .boot .SpringApplication ;
44import org .springframework .boot .autoconfigure .SpringBootApplication ;
Original file line number Diff line number Diff line change 1- package com .assignment .commonservice ;
1+ package com .javatab .commonservice ;
22
33import lombok .Getter ;
44import lombok .Setter ;
Original file line number Diff line number Diff line change 1- package com .assignment .commonservice ;
1+ package com .javatab .commonservice ;
22
33public enum UserRole {
44 USER , ADMIN ;
You can’t perform that action at this time.
0 commit comments