MCPcopy Index your code
hub / github.com/Java-Techie-jt/jwt-apigateway-security

github.com/Java-Techie-jt/jwt-apigateway-security @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
86 symbols 167 edges 32 files 0 documented · 0%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

jwt-apigateway-security

Regist an user

curl --location --request POST 'http://localhost:8080/auth/register' \
--header 'Content-Type: application/json' \
--header 'Cookie: JSESSIONID=7CE91EE75A65277C0DCB6C5736C5DF5D' \
--data-raw '{
    "name":"Basant",
    "password":"Pwd1",
    "email":"basant@gmail.com"
}'

Generate token

curl --location --request POST 'http://localhost:9898/auth/token' \
--header 'Content-Type: application/json' \
--header 'Cookie: JSESSIONID=7CE91EE75A65277C0DCB6C5736C5DF5D' \
--data-raw '{
    "username":"Basant",
    "password":"Pwd1"
}'

Access Swiggy-app

curl --location --request GET 'http://localhost:8080/swiggy/37jbd832' \
--header 'Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJCYXNhbnQiLCJpYXQiOjE2NzkwNTU4MDIsImV4cCI6MTY3OTA1NzYwMn0.Q0bwS5_16q1Z8K-p_flpmyRoJNFCyOhU2AMKSNYh66o' \
--header 'Cookie: JSESSIONID=7CE91EE75A65277C0DCB6C5736C5DF5D'

Access Restaurant-service

curl --location --request GET 'http://localhost:8080/restaurant/orders/status/37jbd832' \
--header 'Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJCYXNhbnQiLCJpYXQiOjE2NzkwNTU1MDcsImV4cCI6MTY3OTA1NzMwN30.9nNAW1rx8RoTIrhn5Abtzg7RplvT9_d-U5EOwUcJZq8' \
--header 'Cookie: JSESSIONID=7CE91EE75A65277C0DCB6C5736C5DF5D'

Extension points exported contracts — how you extend this code

UserCredentialRepository (Interface)
(no doc)
identity-service/src/main/java/com/javatechie/repository/UserCredentialRepository.java

Core symbols most depended-on inside this repo

getPassword
called by 3
identity-service/src/main/java/com/javatechie/config/CustomUserDetails.java
getSignKey
called by 2
identity-service/src/main/java/com/javatechie/service/JwtService.java
getUsername
called by 2
identity-service/src/main/java/com/javatechie/config/CustomUserDetails.java
greeting
called by 1
restaurant-service/src/main/java/com/javatechie/service/RestaurantService.java
getOrders
called by 1
restaurant-service/src/main/java/com/javatechie/dao/RestaurantOrderDAO.java
generateRandomOrders
called by 1
restaurant-service/src/main/java/com/javatechie/dao/RestaurantOrderDAO.java
validateToken
called by 1
swiggy-gateway/src/main/java/com/javatechie/util/JwtUtil.java
getSignKey
called by 1
swiggy-gateway/src/main/java/com/javatechie/util/JwtUtil.java

Shape

Method 53
Class 32
Interface 1

Languages

Java100%

Modules by API surface

identity-service/src/main/java/com/javatechie/config/CustomUserDetails.java9 symbols
identity-service/src/main/java/com/javatechie/config/AuthConfig.java6 symbols
identity-service/src/main/java/com/javatechie/service/JwtService.java5 symbols
swiggy-gateway/src/main/java/com/javatechie/filter/AuthenticationFilter.java4 symbols
restaurant-service/src/main/java/com/javatechie/dao/RestaurantOrderDAO.java4 symbols
identity-service/src/main/java/com/javatechie/service/AuthService.java4 symbols
identity-service/src/main/java/com/javatechie/controller/AuthController.java4 symbols
swiggy-gateway/src/main/java/com/javatechie/util/JwtUtil.java3 symbols
swiggy-app/src/main/java/com/javatechie/service/SwiggyAppService.java3 symbols
swiggy-app/src/main/java/com/javatechie/controller/SwiggyAppController.java3 symbols
restaurant-service/src/main/java/com/javatechie/service/RestaurantService.java3 symbols
restaurant-service/src/main/java/com/javatechie/controller/RestaurantController.java3 symbols

Datastores touched

(mysql)Database · 1 repos
javatechieDatabase · 1 repos

For agents

$ claude mcp add jwt-apigateway-security \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact