-
Notifications
You must be signed in to change notification settings - Fork 147
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added kyc-auth new API for IdP service, fixed couple of bugs. (#916)
- Loading branch information
1 parent
8b90b5a
commit 5d21928
Showing
72 changed files
with
12,166 additions
and
10,770 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,3 +29,4 @@ test.txt | |
/.recommenders/ | ||
**/*.iml | ||
.vscode | ||
.sts4-cache* |
72 changes: 72 additions & 0 deletions
72
...tion-common/src/main/java/io/mosip/authentication/common/service/entity/KycTokenData.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
package io.mosip.authentication.common.service.entity; | ||
|
||
import java.time.LocalDateTime; | ||
|
||
import javax.persistence.Column; | ||
import javax.persistence.Entity; | ||
import javax.persistence.Id; | ||
import javax.persistence.Table; | ||
import javax.validation.constraints.NotNull; | ||
|
||
import lombok.Data; | ||
import lombok.NoArgsConstructor; | ||
|
||
@NoArgsConstructor | ||
@Data | ||
@Table(name = "kyc_token_store", schema = "ida") | ||
@Entity | ||
public class KycTokenData { | ||
|
||
@Id | ||
@NotNull | ||
@Column(name = "id") | ||
private String kycTokenId; | ||
|
||
@NotNull | ||
@Column(name = "id_vid_hash") | ||
private String idVidHash; | ||
|
||
@NotNull | ||
@Column(name = "kyc_token") | ||
private String kycToken; | ||
|
||
@NotNull | ||
@Column(name = "psu_token") | ||
private String psuToken; | ||
|
||
@NotNull | ||
@Column(name = "oidc_client_id") | ||
private String oidcClientId; | ||
|
||
@NotNull | ||
@Column(name = "token_issued_dtimes") | ||
private LocalDateTime tokenIssuedDateTime; | ||
|
||
@NotNull | ||
@Column(name = "auth_req_dtimes") | ||
private LocalDateTime authReqDateTime; | ||
|
||
@NotNull | ||
@Column(name = "kyc_token_status") | ||
private String kycTokenStatus; | ||
|
||
@NotNull | ||
@Column(name = "cr_by") | ||
private String createdBy; | ||
|
||
@NotNull | ||
@Column(name = "cr_dtimes") | ||
private LocalDateTime crDTimes; | ||
|
||
@Column(name = "upd_by") | ||
private String updatedBy; | ||
|
||
@Column(name = "upd_dtimes") | ||
private LocalDateTime updDTimes; | ||
|
||
@Column(name = "is_deleted") | ||
private boolean isDeleted; | ||
|
||
@Column(name = "del_dtimes") | ||
private LocalDateTime delDTimes; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
75 changes: 75 additions & 0 deletions
75
...on-common/src/main/java/io/mosip/authentication/common/service/entity/OIDCClientData.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
package io.mosip.authentication.common.service.entity; | ||
|
||
import java.time.LocalDateTime; | ||
|
||
import javax.persistence.CascadeType; | ||
import javax.persistence.Column; | ||
import javax.persistence.Entity; | ||
import javax.persistence.Id; | ||
import javax.persistence.JoinColumn; | ||
import javax.persistence.OneToOne; | ||
import javax.persistence.Table; | ||
import javax.validation.constraints.NotNull; | ||
|
||
import lombok.Data; | ||
import lombok.NoArgsConstructor; | ||
|
||
@NoArgsConstructor | ||
@Data | ||
@Table(name = "oidc_client_data", schema = "ida") | ||
@Entity | ||
public class OIDCClientData { | ||
|
||
@Id | ||
@NotNull | ||
@Column(name = "oidc_client_id") | ||
private String clientId; | ||
|
||
@NotNull | ||
@Column(name = "oidc_client_name") | ||
private String clientName; | ||
|
||
@NotNull | ||
@Column(name = "oidc_client_status") | ||
private String clientStatus; | ||
|
||
@NotNull | ||
@Column(name = "user_claims") | ||
private String userClaims; | ||
|
||
@NotNull | ||
@Column(name = "auth_context_refs") | ||
private String authContextRefs; | ||
|
||
@NotNull | ||
@Column(name = "client_auth_methods") | ||
private String clientAuthMethods; | ||
|
||
@NotNull | ||
@Column(name = "partner_id") | ||
private String partnerId; | ||
|
||
@OneToOne(cascade = CascadeType.ALL) | ||
@JoinColumn(name = "partner_id", referencedColumnName = "partner_id", insertable = false, updatable = false) | ||
private PartnerData partnerData; | ||
|
||
@NotNull | ||
@Column(name = "cr_by") | ||
private String createdBy; | ||
|
||
@NotNull | ||
@Column(name = "cr_dtimes") | ||
private LocalDateTime crDTimes; | ||
|
||
@Column(name = "upd_by") | ||
private String updatedBy; | ||
|
||
@Column(name = "upd_dtimes") | ||
private LocalDateTime updDTimes; | ||
|
||
@Column(name = "is_deleted") | ||
private boolean isDeleted; | ||
|
||
@Column(name = "del_dtimes") | ||
private LocalDateTime delDTimes; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.