Refactor @ApiResponses annotations (#2879)
Signed-off-by: Avgustin Marinov <Avgustin.Marinov@bosch.com>
This commit is contained in:
@@ -25,26 +25,31 @@ public class OidcProperties {
|
||||
|
||||
@Data
|
||||
public static class Oauth2 {
|
||||
|
||||
private final OidcProperties.Oauth2.ResourceServer resourceserver = new OidcProperties.Oauth2.ResourceServer();
|
||||
|
||||
@Data
|
||||
public static class ResourceServer {
|
||||
|
||||
private final OidcProperties.Oauth2.ResourceServer.Jwt jwt = new OidcProperties.Oauth2.ResourceServer.Jwt();
|
||||
|
||||
/**
|
||||
* Indicates whether the default OAuth2 resource server configuration is enabled.
|
||||
* Defaults to false. If false either no Oauth2 resource server is active or a hawkbitOAuth2ResourceServerCustomizer component can be used to define custom OAuth2 resource server behaviour.
|
||||
* If true, the default spring OAuth2 resource server configuration is activated.
|
||||
*
|
||||
* @see <a href="https://docs.spring.io/spring-security/reference/servlet/oauth2/resource-server/jwt.html#_specifying_the_authorization_server">Spring Documentation</a>
|
||||
*/
|
||||
private boolean enabled = false;
|
||||
|
||||
@Data
|
||||
public static class Jwt {
|
||||
|
||||
private final OidcProperties.Oauth2.ResourceServer.Jwt.Claim claim = new OidcProperties.Oauth2.ResourceServer.Jwt.Claim();
|
||||
|
||||
@Data
|
||||
public static class Claim {
|
||||
|
||||
/**
|
||||
* Defines the claim within the JWT token that supplies the hawkbit username.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user