Java Spring Boot OAuth2 Social and JWT authentication project set up
Budget: $10 – $30 USD
I need a Java Spring OAuth2 Social media login and JWT starter project that does secures a REST API. It must do the following:
1. There needs to be a /login end point that will let a user login using their Google account. (No basic or Form login is required. Only Google login is needed).
After authentication with google is successful, if the user is not in the database already, a new row will be created in the USER table with fields - emailid and name are returned by google.
2. The /login end point will return a JWT token. This token will also be saved in the user table in column named JWT (in the row associated with that user).
3. There needs to be a /data end point that is accessible only if Authentication: Bearer <JWT> header is present in the request. It will return some random data associated with that user (not important). The JWT token must be the same as the one that was returned by the /login end point.
That's it. I need the project structured in Maven format and latest spring boot version and Spring Boot Starter Parent ver 2.5.4. Use Eclipse IDE. MySql db.
Must be stateless. No HttpSession should be used. No Cookies. The above backed will be tested using Postman/SOAPUI.
1. There needs to be a /login end point that will let a user login using their Google account. (No basic or Form login is required. Only Google login is needed).
After authentication with google is successful, if the user is not in the database already, a new row will be created in the USER table with fields - emailid and name are returned by google.
2. The /login end point will return a JWT token. This token will also be saved in the user table in column named JWT (in the row associated with that user).
3. There needs to be a /data end point that is accessible only if Authentication: Bearer <JWT> header is present in the request. It will return some random data associated with that user (not important). The JWT token must be the same as the one that was returned by the /login end point.
That's it. I need the project structured in Maven format and latest spring boot version and Spring Boot Starter Parent ver 2.5.4. Use Eclipse IDE. MySql db.
Must be stateless. No HttpSession should be used. No Cookies. The above backed will be tested using Postman/SOAPUI.
Related categories:
Business, Accounting, Human Resources & Legal
Web Security
RESTful
OAuth
Java Spring