Skip to content

Commit

Permalink
feature/Improve application access text
Browse files Browse the repository at this point in the history
  • Loading branch information
constantine2nd committed Apr 18, 2024
1 parent ae537b5 commit c25a4ec
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 deletions.
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 c25a4ec

Please sign in to comment.