Skip to content

Commit

Permalink
Merge pull request #2377 from constantine2nd/develop
Browse files Browse the repository at this point in the history
Improve application access text
  • Loading branch information
simonredfern committed Apr 18, 2024
2 parents a46ef54 + c25a4ec commit b1cbd29
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 12 deletions.
15 changes: 15 additions & 0 deletions obp-api/src/main/scala/code/api/util/Glossary.scala
Original file line number Diff line number Diff line change
Expand Up @@ -3192,6 +3192,21 @@ object Glossary extends MdcLoggable {
|as well as the authenticity and integrity of the sealed data, and also prove it to third parties.
|The electronic seal provides strong evidence, capable of having legal effect, that given data is originated by the legal entity identified in the certificate.""".stripMargin)

glossaryItems += GlossaryItem(
title = "CRL",
description =
s"""Certificate Revocation List.
|CRL issuers issue CRLs. The CRL issuer is either the CA (certification authority) or an entity that has been authorized by the CA to issue CRLs.
|CAs publish CRLs to provide status information about the certificates they issued.
|However, a CA may delegate this responsibility to another trusted authority.
|It is described in RFC 5280.""".stripMargin)

glossaryItems += GlossaryItem(
title = "OCSP",
description =
s"""The Online Certificate Status Protocol (OCSP) is an Internet protocol used for obtaining the revocation status of an X.509 digital certificate.
|It is described in RFC 6960 and is on the Internet standards track. It was created as an alternative to certificate revocation lists (CRL),""".stripMargin)

glossaryItems += GlossaryItem(
title = "Cross-Device Authorization",
description =
Expand Down
2 changes: 1 addition & 1 deletion obp-api/src/main/scala/code/model/BankingData.scala
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ case class BankAccountExtended(val bankAccount: BankAccount) extends MdcLoggable
grantedViews <- Views.views.vend.grantAccessToMultipleViews(viewUIDs, otherUser, callContext) ?~ "could not save the privilege"
} yield grantedViews
else
Failure(UserLacksPermissionCanGrantAccessToViewForTargetAccount + s"Current ViewIds${viewUIDs.map(_.viewId.value)} and current UserId${user.userId}")
Failure(UserLacksPermissionCanGrantAccessToViewForTargetAccount + s"Current ViewIds${viewUIDs.map(_.viewId.value).mkString(", ")} and current UserId${user.userId}")
}

/**
Expand Down
3 changes: 0 additions & 3 deletions obp-api/src/main/scala/code/snippet/ConsentScreen.scala
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,7 @@ class ConsentScreen extends MdcLoggable {
val username = AuthUser.getCurrentUser.map(_.name).getOrElse("")
val oidcProviderDescription = getWebUiPropsValue("webui_hydra_oidc_client", "OpenID Connect Provider")
"#username *" #> username &
"#username_2 *" #> username &
"#consumer_description_1 *" #> oidcProviderDescription &
"#consumer_description_2 *" #> oidcProviderDescription &
"#consumer_description_3 *" #> oidcProviderDescription &
"form" #> {
"#skip_consent_screen_checkbox" #> SHtml.checkbox(skipConsentScreenVar, skipConsentScreenVar(_)) &
"#allow_access_to_consent" #> SHtml.submit(s"Allow access", () => submitAllowAction) &
Expand Down
10 changes: 2 additions & 8 deletions obp-api/src/main/webapp/consent-screen.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,8 @@
}
</style>
<div id="data-area-explanation">
<h1>An application requests access to your data!</h1>
<p>Hi <span id="username" class="reset-style"></span>, application <strong><span id="consumer_description_1" class="reset-style"></span></strong> wants access resources on your behalf and to:</p>
<ul>
<li>openid</li>
</ul>
<p>Confirm or Deny Applicaiton Access.</p>
<p>Dear <span id="username_2" class="reset-style"></span>, <span id="consumer_description_2" class="reset-style"></span> is requesting access to your user profile.</p>
<p><span id="consumer_description_3" class="reset-style"></span> will be able to act on your behalf.</p>
<h1>Confirm Application Access</h1>
<p>Hi <span id="username" class="reset-style"></span>, the <strong><span id="consumer_description_1" class="reset-style"></span></strong> wants to act on your behalf.</p>
</div>

<form method="post">
Expand Down

0 comments on commit b1cbd29

Please sign in to comment.