KEYCLOAK-19467 Add noopener/noreferrer to links

This commit is contained in:
stianst 2021-10-05 09:38:01 +02:00 committed by Stian Thorgersen
parent 01a0e11c8f
commit 12157bb66c
3 changed files with 4 additions and 4 deletions

View file

@ -49,7 +49,7 @@
<td><a href="#/realms/{{realm.realm}}/clients/{{client.id}}">{{client.clientId}}</a></td> <td><a href="#/realms/{{realm.realm}}/clients/{{client.id}}">{{client.clientId}}</a></td>
<td translate="{{client.enabled}}"></td> <td translate="{{client.enabled}}"></td>
<td ng-class="{'text-muted': !client.baseUrl}"> <td ng-class="{'text-muted': !client.baseUrl}">
<a href="{{client.rootUrl | resolveClientRootUrl}}{{client.baseUrl}}" target="_blank" data-ng-show="client.baseUrl">{{client.rootUrl | resolveClientRootUrl}}{{client.baseUrl}}</a> <a href="{{client.rootUrl | resolveClientRootUrl}}{{client.baseUrl}}" rel="noopener noreferrer" target="_blank" data-ng-show="client.baseUrl">{{client.rootUrl | resolveClientRootUrl}}{{client.baseUrl}}</a>
<span data-ng-hide="client.baseUrl">{{:: 'not-defined' | translate}}</span> <span data-ng-hide="client.baseUrl">{{:: 'not-defined' | translate}}</span>
</td> </td>
<td class="kc-action-cell" kc-open="/realms/{{realm.realm}}/clients/{{client.id}}">{{:: 'edit' | translate}}</td> <td class="kc-action-cell" kc-open="/realms/{{realm.realm}}/clients/{{client.id}}">{{:: 'edit' | translate}}</td>

View file

@ -66,9 +66,9 @@
<div class="form-group"> <div class="form-group">
<label class="col-md-2 control-label">{{:: 'endpoints' | translate}}</label> <label class="col-md-2 control-label">{{:: 'endpoints' | translate}}</label>
<div class="col-md-6"> <div class="col-md-6">
<a class="form-control" ng-href="{{authServerUrl}}/realms/{{realm.realm}}/.well-known/openid-configuration" target="_blank">{{:: 'realm-detail.protocol-endpoints.oidc' | translate}}</a> <a class="form-control" ng-href="{{authServerUrl}}/realms/{{realm.realm}}/.well-known/openid-configuration" rel="noopener noreferrer" target="_blank">{{:: 'realm-detail.protocol-endpoints.oidc' | translate}}</a>
<a class="form-control" ng-href="{{authServerUrl}}/realms/{{realm.realm}}/protocol/saml/descriptor" target="_blank">{{:: 'realm-detail.protocol-endpoints.saml' | translate}}</a> <a class="form-control" ng-href="{{authServerUrl}}/realms/{{realm.realm}}/protocol/saml/descriptor" rel="noopener noreferrer" target="_blank">{{:: 'realm-detail.protocol-endpoints.saml' | translate}}</a>
</div> </div>
<kc-tooltip>{{:: 'realm-detail.protocol-endpoints.tooltip' | translate}}</kc-tooltip> <kc-tooltip>{{:: 'realm-detail.protocol-endpoints.tooltip' | translate}}</kc-tooltip>
</div> </div>

View file

@ -125,7 +125,7 @@
<div class="form-group" data-ng-show="!importFile && !newIdentityProvider"> <div class="form-group" data-ng-show="!importFile && !newIdentityProvider">
<label class="col-md-2 control-label">{{:: 'endpoints' | translate}}</label> <label class="col-md-2 control-label">{{:: 'endpoints' | translate}}</label>
<div class="col-md-6"> <div class="col-md-6">
<a class="form-control" ng-href="{{callbackUrl}}{{identityProvider.alias}}/endpoint/descriptor" target="_blank">{{:: 'identity-provider.saml.protocol-endpoints.saml' | translate}}</a> <a class="form-control" ng-href="{{callbackUrl}}{{identityProvider.alias}}/endpoint/descriptor" rel="noopener noreferrer" target="_blank">{{:: 'identity-provider.saml.protocol-endpoints.saml' | translate}}</a>
</div> </div>
<kc-tooltip>{{:: 'identity-provider.saml.protocol-endpoints.saml.tooltip' | translate}}</kc-tooltip> <kc-tooltip>{{:: 'identity-provider.saml.protocol-endpoints.saml.tooltip' | translate}}</kc-tooltip>
</div> </div>