Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@tigrulya-exe
Copy link
Member

  • Added endpoint for retrieving information about the logged-in user
  • Replaced null user with anonymous one in case of disabled authentication
  • Added smart.rest.server.auth.spnego.keytab config to optionally provide SSM server keytab for HTTP principal separately from SSM service keytab (smart.server.keytab.file)

)
@ResponseStatus(HttpStatus.OK)

default UserInfoDto getCurrentUser(

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please, reformat the code

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This class is generated by openapi maven plugin


@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
@RestController
@RequestMapping("${openapi.sSMAPIDocumentation.base-path:}")

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

may be here we should have smth like: ${openapi.sSMAPIDocumentation.base-path:} + /api/v2/system and in SystemApi interface on the method getCurrentUser() smth like this: /current-user ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as above

@iamlapa iamlapa merged commit be81a93 into develop Jun 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants