Adding hints for service registration.
This commit is contained in:
parent
4ef435f514
commit
b935a67b58
5
pom.xml
5
pom.xml
|
@ -57,11 +57,6 @@
|
|||
<artifactId>javax.servlet-api</artifactId>
|
||||
<version>3.0.1</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>eu.dnetlib</groupId>
|
||||
<artifactId>uoa-user-management</artifactId>
|
||||
<version>2.0.0-SNAPSHOT</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.springframework.security</groupId>
|
||||
<artifactId>spring-security-core</artifactId>
|
||||
|
|
|
@ -220,10 +220,10 @@
|
|||
function checkRadio() {
|
||||
var securityLevel = $('input[type=radio][name=security_level]:checked').val();
|
||||
if(securityLevel === 'basic') {
|
||||
$("#security-hint").html('Basic Security level hint');
|
||||
$("#security-hint").html('Register your service to get a client id and a client secret. Use the client id and secret to make your requests. <a href="" target="_blank">Read more...</a>');
|
||||
$("#public-key").hide();
|
||||
} else {
|
||||
$("#security-hint").html('Advanced Security level hint');
|
||||
$("#security-hint").html('Register your service to get a client id. Declare your public key and instead of using the client secret to make a request, send a client assertion (JWT) signed with your private key. <a href="" target="_blank">Read more...</a>');
|
||||
var keyType = $('input[type=radio][name=key_type]:checked').val();
|
||||
$("#public-key").show();
|
||||
if (keyType === 'uri') {
|
||||
|
|
|
@ -83,7 +83,7 @@
|
|||
<li>
|
||||
<div class="uk-grid uk-child-width-1-4 uk-text-muted" uk-grid>
|
||||
<div>Name</div>
|
||||
<div>Service Id</div>
|
||||
<div>Client Id</div>
|
||||
<div>Creation Date</div>
|
||||
<div>Actions</div>
|
||||
</div>
|
||||
|
@ -140,7 +140,7 @@
|
|||
<li id="details${registeredService.id}" hidden="hidden">
|
||||
<div class="uk-alert">
|
||||
<p><span class="uk-text-primary">Name:</span> ${services[key].clientName}</p>
|
||||
<p><span class="uk-text-primary">Service Id:</span> ${services[key].clientId}</p>
|
||||
<p><span class="uk-text-primary">Client Id:</span> ${services[key].clientId}</p>
|
||||
<p><span class="uk-text-primary">Scope:</span> openid</p>
|
||||
<p><span class="uk-text-primary">Grant type:</span> client credentials</p>
|
||||
<c:choose>
|
||||
|
|
Loading…
Reference in New Issue