feature/Tweak json response field names

This commit is contained in:
Marko Milić 2023-02-23 16:09:52 +01:00
parent 7b15680076
commit 579ea79738
3 changed files with 6 additions and 6 deletions

View File

@ -4157,8 +4157,8 @@ object SwaggerDefinitionsJSON {
val oAuth2ServerJwksUrisJson = OAuth2ServerJwksUrisJson(List(oAuth2ServerJWKURIJson))
val certificateInfoJsonV510 = CertificateInfoJsonV510(
subject_dn = "OID.2.5.4.41=VPN, EMAILADDRESS=admin@tesobe.com, CN=TESOBE CA, OU=TESOBE Operations, O=TESOBE, L=Berlin, ST=Berlin, C=DE",
issuer_dn = "CN=localhost, O=TESOBE GmbH, ST=Berlin, C=DE",
subject_domain_name = "OID.2.5.4.41=VPN, EMAILADDRESS=admin@tesobe.com, CN=TESOBE CA, OU=TESOBE Operations, O=TESOBE, L=Berlin, ST=Berlin, C=DE",
issuer_domain_name = "CN=localhost, O=TESOBE GmbH, ST=Berlin, C=DE",
not_before = "2022-04-01T10:13:00.000Z",
not_after = "2032-04-01T10:13:00.000Z",
roles = None,

View File

@ -229,8 +229,8 @@ object X509 extends MdcLoggable {
rolesInfo = Some("PEM Encoded Certificate does not contain PSD2 roles.")
}
val result = CertificateInfoJsonV510(
subject_dn = subjectDN,
issuer_dn = issuerDN,
subject_domain_name = subjectDN,
issuer_domain_name = issuerDN,
not_before = APIUtil.formatDate(notBefore),
not_after = APIUtil.formatDate(notAfter),
roles = roles,

View File

@ -48,8 +48,8 @@ case class APIInfoJsonV510(
)
case class CertificateInfoJsonV510(
subject_dn: String,
issuer_dn: String,
subject_domain_name: String,
issuer_domain_name: String,
not_before: String,
not_after: String,
roles: Option[List[String]],