Java Hyd Team
Photo from ENTREPRENEUR
Step 1: Setup Spring Security with JWT
1. Create a new project in your IDE.
2. Add Spring Security and JWT dependencies to the project.
3. Configure the Spring Security configuration file to secure the application.
4. Add the JWT authentication filter to the security configuration.
5. Add the JWT authentication provider to the security configuration.
6. Configure the authentication manager to use the JWT authentication provider.
Step 2: Implement the APIs
1. Create the two APIs for Task 1 and Task 2.
2. Add the Spring Security annotation to each API to restrict access to authenticated users.
3. Create the JWT Token Service to generate, validate and refresh the JWT tokens.
4. Add the save user detail and date time of when the token is created, set the 10 minutes timeout for JWT.
5. Implement the logic to check if the token is expired, if it is expired then return an appropriate response.
6. Implement the logic to divide the APIs based on roles and rules via Spring Security.
7. Implement the logic to call the REST API using Rest Template and to do the call in a separate thread.
8. Implement the logic to return the response for Task2 with a delay of 3-6 seconds randomly.
Step 3: Test the APIs
1. Test the APIs with a valid JWT token and check the response.
2. Test the APIs with an expired JWT token and check the response.
3. Test the APIs with an invalid JWT token and check the response.
4. Test the APIs with an invalid role and check the response.
5. Test the APIs for the delay and check the response.
1. Create a new project in your IDE.
2. Add Spring Security and JWT dependencies to the project.
3. Configure the Spring Security configuration file to secure the application.
4. Add the JWT authentication filter to the security configuration.
5. Add the JWT authentication provider to the security configuration.
6. Configure the authentication manager to use the JWT authentication provider.
Step 2: Implement the APIs
1. Create the two APIs for Task 1 and Task 2.
2. Add the Spring Security annotation to each API to restrict access to authenticated users.
3. Create the JWT Token Service to generate, validate and refresh the JWT tokens.
4. Add the save user detail and date time of when the token is created, set the 10 minutes timeout for JWT.
5. Implement the logic to check if the token is expired, if it is expired then return an appropriate response.
6. Implement the logic to divide the APIs based on roles and rules via Spring Security.
7. Implement the logic to call the REST API using Rest Template and to do the call in a separate thread.
8. Implement the logic to return the response for Task2 with a delay of 3-6 seconds randomly.
Step 3: Test the APIs
1. Test the APIs with a valid JWT token and check the response.
2. Test the APIs with an expired JWT token and check the response.
3. Test the APIs with an invalid JWT token and check the response.
4. Test the APIs with an invalid role and check the response.
5. Test the APIs for the delay and check the response.
Java Hyd Team
https://forms.gle/14M1Gxm2swLE8wUF6 can fill-up this form so that i can send you invite link
35 response in total I have recieved till now by 22:00 will send mail 📬 can tick yes and it will be added to your calendar 🗓️📆 so that you will get notified 30 minutes early while we start the session
Java Hyd Team
Can we do one session for React-Js will next Sunday this Sunday m not taking any sessions
Still 50 response pending do it asap so that we can share meeting details with you on mail 📬
In first round of session these many students registered with us for basics of Java to advanced level but at end only 9 has completed 😂😂 but it was a great journey some got placed some are still asking
Java Hyd Team
In first round of session these many students registered with us for basics of Java to advanced level but at end only 9 has completed 😂😂 but it was a great journey some got placed some are still asking now got another set for React-Js please be available we…
Do check out your emails you have been sent invite for the reactjs session
👍2