created new api's for login with spid
This commit is contained in:
@@ -6,21 +6,15 @@ import jakarta.persistence.Table;
|
||||
import lombok.Data;
|
||||
|
||||
@Entity
|
||||
@Table(name = "SAML_RESPONSE_LOG")
|
||||
@Table(name = "SAML_RESPONSE")
|
||||
@Data
|
||||
public class SamlResponseLogEntity extends BaseEntity{
|
||||
|
||||
@Column(name = "REQUEST")
|
||||
private String request;
|
||||
|
||||
@Column(name = "RESPONSE")
|
||||
private String response;
|
||||
public class SamlResponseEntity extends BaseEntity{
|
||||
|
||||
@Column(name = "AUTHENTICATION_OBJECT")
|
||||
private String authenticationObject;
|
||||
|
||||
@Column(name = "EXCEPTION_OBJECT")
|
||||
private String exceptionObject;
|
||||
@Column(name = "TOKEN")
|
||||
private String token;
|
||||
|
||||
|
||||
}
|
||||
@@ -1,6 +1,5 @@
|
||||
package net.gepafin.tendermanagement.entities;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import jakarta.persistence.*;
|
||||
import jakarta.validation.constraints.Email;
|
||||
|
||||
@@ -17,7 +16,7 @@ import java.time.LocalDateTime;
|
||||
@Setter
|
||||
public class UserEntity extends BaseEntity {
|
||||
|
||||
@Column(name = "PASSWORD", columnDefinition = "TEXT",nullable = false)
|
||||
@Column(name = "PASSWORD", columnDefinition = "TEXT",nullable = true)
|
||||
@JsonIgnore
|
||||
private String password;
|
||||
|
||||
@@ -29,8 +28,7 @@ public class UserEntity extends BaseEntity {
|
||||
@JoinColumn(name = "ROLE_ID")
|
||||
@JsonIgnore
|
||||
private RoleEntity roleEntity;
|
||||
|
||||
|
||||
|
||||
@Column(name = "LAST_LOGIN")
|
||||
private LocalDateTime lastLogin;
|
||||
|
||||
@@ -60,4 +58,7 @@ public class UserEntity extends BaseEntity {
|
||||
|
||||
@Column(name = "RESET_PASSWORD_TOKEN", length = 255, nullable = true)
|
||||
private String resetPasswordToken;
|
||||
|
||||
@Column(name = "CODICE_FISCALE")
|
||||
private String codiceFiscale;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user