X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=portal%2Ftemplates%2Faccount-view.html;h=b71f3da83c210e1a0fe9e824360216a84212ca02;hb=f9f56dddbbfcc2e3a798e0f8920441b69264dc17;hp=113345261bba62875b093d5be80738989199d45d;hpb=ad35ed326deb96b25e2a2dea68ceb797b898d203;p=unfold.git diff --git a/portal/templates/account-view.html b/portal/templates/account-view.html index 11334526..b71f3da8 100644 --- a/portal/templates/account-view.html +++ b/portal/templates/account-view.html @@ -1,17 +1,22 @@ -{% extends "layout-unfold1.html" %} - -{% block head %} - - - - - -{% endblock %} - -{% block unfold_main %} - -

MySlice Account

+{% 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 %} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - {%if 'N/A' not in user_private_key%} - - - {%endif%} - - - - -
-
Personal Details
-
Email - {{ person.email }} - -
Password - - ******** - - - - - - - - - - - - -
Enter password:
Confirm password: - - -
-
-
Full Name - {{ fullname }} - - -
- - - -
- -
Authority - {{ authority }} - -
Generate Keys - -
Public Key - ******** - - -
-
- - -
-
- - -
Private Key ******** - - -
-

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. -

-
- -
+
+
+ +
+
+
+ +
-

Platform Access

-
-
- + {% 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

+

+
+ +
+
+ +
+
+ +

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 }}
+ +
+ + {%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%} +
+{%endif%}
- + + {% endblock %}