mirror of
https://github.com/OpenBankProject/OBP-API.git
synced 2026-02-06 11:06:49 +00:00
Revert "feature/Add function PemCertificateRole.toBerlinGroup"
This reverts commit e81eccde3b.
This commit is contained in:
parent
b0b062cc55
commit
bd43d9347f
@ -3979,8 +3979,7 @@ object APIUtil extends MdcLoggable with CustomJsonFormats{
|
||||
tpp <- BerlinGroupSigning.getTppByCertificate(certificate, cc)
|
||||
} yield {
|
||||
if (tpp.nonEmpty) {
|
||||
val berlinGroupRole = PemCertificateRole.toBerlinGroup(serviceProvider)
|
||||
val hasRole = tpp.exists(_.services.contains(berlinGroupRole))
|
||||
val hasRole = tpp.exists(_.services.contains(serviceProvider))
|
||||
if (hasRole) {
|
||||
Full(true)
|
||||
} else {
|
||||
|
||||
@ -173,14 +173,6 @@ object PemCertificateRole extends OBPEnumeration[PemCertificateRole] {
|
||||
object PSP_IC extends Value
|
||||
object PSP_AI extends Value
|
||||
object PSP_PI extends Value
|
||||
|
||||
def toBerlinGroup(role: String): String = {
|
||||
role match {
|
||||
case item if PSP_AI.toString == item => "AISP"
|
||||
case item if PSP_PI.toString == item => "PISP"
|
||||
case _ => ""
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
sealed trait UserInvitationPurpose extends EnumValue
|
||||
|
||||
Loading…
Reference in New Issue
Block a user