|
|
|
@ -30,6 +30,7 @@ import org.thingsboard.server.common.data.HasTenantId; |
|
|
|
import org.thingsboard.server.common.data.id.OAuth2ClientId; |
|
|
|
import org.thingsboard.server.common.data.id.TenantId; |
|
|
|
import org.thingsboard.server.common.data.validation.Length; |
|
|
|
import org.thingsboard.server.common.data.validation.NoXss; |
|
|
|
|
|
|
|
import java.util.List; |
|
|
|
|
|
|
|
@ -42,6 +43,7 @@ public class OAuth2Client extends BaseDataWithAdditionalInfo<OAuth2ClientId> imp |
|
|
|
private TenantId tenantId; |
|
|
|
@Schema(description = "Oauth2 client title") |
|
|
|
@NotBlank |
|
|
|
@NoXss |
|
|
|
@Length(fieldName = "title", max = 100, message = "cannot be longer than 100 chars") |
|
|
|
private String title; |
|
|
|
@Schema(description = "Config for mapping OAuth2 log in response to platform entities", requiredMode = Schema.RequiredMode.REQUIRED) |
|
|
|
|