X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=portal%2Ftemplates%2Faccount-view.html;h=b603f632ea0fc23f5c984b99735f8b308c5fb96a;hb=3ea9e2bbd60f1019a44acae7fa047ee8b591344c;hp=de76067c92e94f77d922a751ed31e743bbcd364b;hpb=0c6e0197da94e834beb0d6b8e9b46011efa4e1a5;p=unfold.git diff --git a/portal/templates/account-view.html b/portal/templates/account-view.html index de76067c..b603f632 100644 --- a/portal/templates/account-view.html +++ b/portal/templates/account-view.html @@ -1,157 +1,326 @@ -{% extends "layout-unfold1.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%} -{% block head %} - - - - - -{% endblock %} +
+{% if messages %} + +{% endif %} + +
+ + +
+
+ +
+
+
+
+ +
-{% block unfold1_main %} + {% csrf_token %} + + + + + + + + + + + + + + + + + + + + + {%if 'Enabled' in user_status %} + + + + + + + + + + {%if 'N/A' not in user_private_key%} + + + {%else%} + + + {%endif%} + + + + + + + {%if 'N/A' not in user_private_key%} + + + {%else%} + + + {%endif%} + + + + + {%endif%} +
+

Platform: Myslice

+
Email + {{ person.email }} + +
Password + + ******** + + + + + + + + + + + + +
Enter password:
Confirm password: + + +
+
+
Full Name + {{ fullname }} + + +
+ + + +
+ +
Authority + {{ authority }} + +
Generate Keys + +
Public Key + ******** + + +
+
+ + +
+
+ + +
Private Key ******** + + + Private Key ******** + + +
sfi_config use sfi_config file with sfi.py package (pip install sfa) + +
Identity + + Identity + +
+

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

+

+
+ +
+
-

Platform Access

-
-
- +
+
+ +

Principal Account Account used for delegating credentials

+
- - - + + + + + - {% for row in data %} + {% for row in principal_acc %} - + + - + + {%endfor%}
PlatformAccount Typeuser_hrnPub KeyAccount TypeAccount DelegationUser hrnUser Status
{{ row.platform_name }} {{ row.account_type }} {{ row.account_type }} {{ row.delegation_type }} {{ row.usr_hrn }} {{ row.usr_pubkey }} {{ row.user_status }}
-
-
- + +
-

MySlice Account

- -{% if messages %} - -{% endif %} - - -
-
- - {% csrf_token %} - - - - - - - - - - - - - - -
-
Personal Details
-
Email - {{ person.email }} - -
Password - - ******** - - - - - - - - - - - - -
Enter password:
Confirm password: - - -
-
-
Full Name - {{ fullname }} - - -
- - - -
- + {%if 'Enabled' in user_status %} +
+

Credentials Delegated to Principal Account

+ + + + + + + {% for row in my_users %} + + + - - - - - - -
Delegated User Credential
Expiration DateDownload
{{ row.cred_exp }} + + +
Authority - {{ authority }} - -
Generate Keys -
+

+ + + + + + + + {% 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 }} + -
Public Key - ******** - - -
-
- - -
-
- - -
Private Key ******** - - -
-

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

-
- +

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

+ {%else%} +

+ {%endif%} +
+{%endif%} + + + {% endblock %}