-
Notifications
You must be signed in to change notification settings - Fork 75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(jans-config-api): user-management endpoints #1167
Conversation
…ns-config-api-418
[jans-cli] Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some minor changes are needed, please check comments.
|
||
@POST | ||
@ProtectedApi(scopes = { ApiAccessConstants.USER_WRITE_ACCESS }) | ||
public Response createOpenIdConnect(@Valid User user) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure what does method name mean createOpenIdConnect
, sounds like typo. createUser
fits better.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, rectified the same
|
||
@GET | ||
@ProtectedApi(scopes = { ApiAccessConstants.USER_READ_ACCESS }) | ||
public Response getOpenIdConnectClients( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's not openid clients, we are returning users. searchUsers
or getUsers
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, rectified the same
@QueryParam(value = ApiConstants.SORT_BY) String sortBy, | ||
@QueryParam(value = ApiConstants.SORT_ORDER) String sortOrder) { | ||
if (logger.isDebugEnabled()) { | ||
logger.debug("User serach param - limit:{}, pattern:{}, startIndex:{}, sortBy:{}, sortOrder:{}", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo, serach
-> search
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rectified
|
||
@ApplicationScoped | ||
@Named("userSrv") | ||
public class UsrService extends UserService { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
public class UserService extends io.jans.as.common.service.common.UserService
will work too.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it was public class UserService extends io.jans.as.common.service.common.UserService
but when analyzed it locally it was giving sonar issue to change the name and hence i changed it to UsrService
.
Will check in as suggested and lets see
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see, let it be then.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[jans-linux-setup] Kudos, SonarCloud Quality Gate passed! |
[Fido2 API] Kudos, SonarCloud Quality Gate passed! |
[Jans authentication server parent] Kudos, SonarCloud Quality Gate passed! |
[jans-config-api-parent] Kudos, SonarCloud Quality Gate passed! |
@yuriyz request you to pls review and approve new endpoints for user management
Related issue 418
Endpoint: /jans-config-api/api/v1/user
Impacted modules:
1) jans-config-api: Endpoint related classes and swagger spec
2)jans-cli: endpoint spec changes