X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=portal%2Ftemplates%2Faccount-view.html;h=985974fba1dcd7a8e0ada71f7c191a848b861b4d;hb=6c978327b002ef4b46047ce22ba7e8f61768f652;hp=2b8a9ca5d7b851fd05c6e4d5f71ba4a40c961c58;hpb=4956db5b73c760e061c517f93f2329cd2f7b5bbc;p=myslice.git diff --git a/portal/templates/account-view.html b/portal/templates/account-view.html index 2b8a9ca5..985974fb 100644 --- a/portal/templates/account-view.html +++ b/portal/templates/account-view.html @@ -1,7 +1,22 @@ -{% extends "layout_wide.html" %} +{% extends "layout.html" %} +{% load portal_filters %} {% block content %} +{% widget "_widget-no_credentials.html" %} +{% widget "_widget-tradeoff.html" %} +
+
+ +
+ {%if 'no_creds' in user_cred %} +

NO CREDENTIALS are delegated to the portal!

+ {%endif%} + {%if 'creds_expired' in user_cred %} +

EXPIRED CREDENTIALS Please delegate again your credentials to the portal!

+ {%endif%} - +
{% if messages %} {% endif %} -
-
- -
+ +
+ + + -
+
- {% csrf_token %} @@ -37,7 +53,7 @@ @@ -98,7 +114,7 @@ @@ -108,7 +124,7 @@ {%else%} {%endif%} + + + + + + {%if 'N/A' not in user_private_key%} + + + {%else%} + + + {%endif%} + + @@ -184,83 +226,83 @@
Email {{ person.email }} -
Generate Keys - ******** - +
@@ -116,7 +132,7 @@ onclick="return confirm('Are you sure? It will overwrite your current credentials and you have delegate it manually.');"/>
-
Private Key ******** - + onclick="javascript:document.getElementById('button_value').value='delete'; return confirm('Are you sure? If you do so, you have to delegate your credentials manually.');"/> Private Key ******** -
sfi_config use sfi_config file with sfi.py package (pip install sfa) + +
Identity + + Identity + +
-

Tradeoff: Ease-of-use vs Security.
- Ease-of-use: Automatic account delegation. Don't delete private key.
- Security: Manual account delegation. Download & Delete private key. +

+ Automatic vs. Manual delegation of credentials: + Trade-off between ease-of-use & security

- {%if 'Enabled' in user_status %}

Credentials Delegated to Principal Account

- - - - - - - {% for row in my_users %} - - - - - {%endfor%} -
Delegated User Credential
Expiration DateDownload
{{ row.cred_exp }} - - - -
-

- - - - - - - - {% for row in my_slices %} - - - - - - {%endfor%} -
Delegated Slice Credentials
Slice NameExpiration DateDownload
{{ row.slice_name }} {{ row.cred_exp }} - -
-

- - - - - - - - {% for row in my_auths %} - - - - - - {%endfor%} -
Delegated Authority Credentials
Authority NameExpiration DateDownload
{{ row.auth_name }} {{ row.cred_exp }} - -
-

- {%if '' not in my_users%} -

- {%else%} -

- {%endif%} + + + + + + + {% for row in my_users %} + + + + + {%endfor%} +
Delegated User Credential
Expiration DateDownload
{{ row.cred_exp }} + + + +
+

+ + + + + + + + {% for row in my_slices %} + + + + + + {%endfor%} +
Delegated Slice Credentials
Slice NameExpiration DateDownload
{{ row.slice_name }} {{ row.cred_exp }} + +
+

+ + + + + + + + {% for row in my_auths %} + + + + + + {%endfor%} +
Delegated Authority Credentials
Authority NameExpiration DateDownload
{{ row.auth_name }} {{ row.cred_exp }} + +
+

+ {%if '' not in my_users%} +

+ {%else%} +

+ {%endif%}
+
@@ -278,7 +320,7 @@ {{ row.account_type }} {{ row.account_reference }} - @@ -297,7 +339,7 @@ {{ platform.platform_no_access }} - @@ -307,16 +349,20 @@
{%endif%}
-
+