Bloggios / auth-provider-application

The Auth Provider Application microservice, developed with Java 17 and Spring Boot, is designed to offer robust authentication and authorization services for Bloggios. This microservice ensures secure access and user management, enhancing the overall security framework of the platform.
Apache License 2.0
1 stars 3 forks source link

(Development) : Implement an API Endpoint to allow users to add username #8

Open rohit-zip opened 6 months ago

rohit-zip commented 6 months ago

Issue Description

Rules:

Endpoint:

Request Param:

Note:

Utilize @AuthenticationPrincipal to access logged-in user details, including userId, email, username, and authorities.

Response Body:

Validations:

Exception Handling

Contact:

For further assistance, please reach out:

kesrishubham2510 commented 3 months ago

Hi @rohit-zip, I see the targetController has a RequestMapping path "/auth-provider/user-auth/read" already adding a post method with "/auth-provider/user/add-username" endpoint would be redundant I think.

Suggestion:- Either the RequestMapping could be modified to EndpointConstants.CONTEXT_PATH and the "/user-auth/read" can be appended specifically to the Get methods only.

Am I missing anything here ?