Signup APi
#2
Open
wasiullah.khan
wants to merge 3 commits from Wasi/BS-1344 into dev-pending-09-12-2025
@ -0,0 +1,15 @@
|
||||
package com.mfsys.common.configuration.exception;
|
||||
|
||||
import com.mfsys.common.configuration.constant.ERRCode;
|
||||
|
||||
public class EmailAlreadyUsedException extends ApplicationException {
|
||||
|
||||
public EmailAlreadyUsedException(String porOrgacode, String existingUsername) {
|
||||
super(porOrgacode, ERRCode.EMAIL_ALREADY_USED, existingUsername);
|
||||
}
|
||||
|
||||
public EmailAlreadyUsedException(String porOrgacode, String existingUsername, Throwable cause) {
|
||||
super(porOrgacode, ERRCode.EMAIL_ALREADY_USED, existingUsername);
|
||||
initCause(cause);
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,18 @@
|
||||
package com.mfsys.common.configuration.exception;
|
||||
|
||||
import com.mfsys.common.configuration.constant.ERRCode;
|
||||
|
||||
public class UserAlreadyExistsException extends ApplicationException {
|
||||
|
||||
public UserAlreadyExistsException(String porOrgacode) {
|
||||
super(porOrgacode, ERRCode.USER_ALREADY_EXISTS);
|
||||
}
|
||||
|
||||
public UserAlreadyExistsException(String porOrgacode, Throwable cause) {
|
||||
super(porOrgacode, ERRCode.USER_ALREADY_EXISTS, cause);
|
||||
}
|
||||
|
||||
public UserAlreadyExistsException(String porOrgacode, Object... arguments) {
|
||||
super(porOrgacode, ERRCode.USER_ALREADY_EXISTS, arguments);
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,16 @@
|
||||
package com.mfsys.aconnect.security.dto;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class SignupRequest {
|
||||
private String username;
|
||||
private String password;
|
||||
private String email;
|
||||
private String fullName;
|
||||
private String porOrgacode;
|
||||
}
|
||||
@ -0,0 +1,14 @@
|
||||
package com.mfsys.aconnect.security.dto;
|
||||
|
||||
import com.mfsys.aconnect.usermanagement.model.User;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class SignupResponse {
|
||||
private boolean success;
|
||||
private String message;
|
||||
}
|
||||
@ -1,32 +1,4 @@
|
||||
spring.application.name = aconnect
|
||||
app.base.uri=aconnect
|
||||
app.db.dbname = aconnect
|
||||
app.db.dbuser=${CMB_SQL_DB_USER}
|
||||
app.db.dbpassword=${CMB_SQL_DB_PASSWORD}
|
||||
app.db.url=${CMB_SQL_DB_MACHINE_IP}
|
||||
app.server.timezone=${APP_SERVER_TIMEZONE}
|
||||
spring.datasource.username = ${app.db.dbuser}
|
||||
spring.datasource.password = ${app.db.dbpassword}
|
||||
spring.datasource.url = jdbc:mysql://${app.db.url}/${app.db.dbname}?createDatabaseIfNotExist=true&serverTimezone=${app.server.timezone}&useLegacyDatetimeCode=false&useUnicode=yes&characterEncoding=UTF-8&characterSetResults=UTF-8
|
||||
|
||||
spring.jpa.properties.hibernate.connection.characterEncoding=utf-8
|
||||
spring.jpa.properties.hibernate.connection.CharSet=utf-8
|
||||
spring.jpa.properties.hibernate.connection.useUnicode=true
|
||||
spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQLDialect
|
||||
spring.jpa.hibernate.ddl-auto=update
|
||||
|
||||
jwt.secret = mySecretKey123456789012345678901234567890
|
||||
jwt.expiration = 86400000
|
||||
jwt.refresh-expiration= 604800000
|
||||
|
||||
# User-specific security URLs for uat environment
|
||||
#app.security.user.01.uri=http://uat-server-01:9090/security/auth/user
|
||||
#app.security.user.02.uri=http://uat-server-02:9090/security/auth/user
|
||||
#app.security.user.03.uri=http://uat-server-03:9090/security/auth/user
|
||||
#app.security.user.admin.uri=http://uat-admin-server:9090/security/auth/user
|
||||
#app.security.user.qa.uri=http://uat-qa-server:9090/security/auth/user
|
||||
|
||||
app.deposit.uri=${CMB_DEPOSIT_SERVER_URL}
|
||||
app.generalledger.uri=${CMB_GL_SERVER_URL}
|
||||
app.organization.uri=${CMB_ORGA_CODE}
|
||||
app.security.uri=${CMB_SECURITY_SERVER_URL}/security/auth/user
|
||||
app.security.uri=${CMB_SECURITY_SERVER_URL}/security/auth/user
|
||||
|
||||
Loading…
Reference in New Issue