X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=portal%2Ftemplates%2Faccount-view.html;h=b603f632ea0fc23f5c984b99735f8b308c5fb96a;hb=3ea9e2bbd60f1019a44acae7fa047ee8b591344c;hp=3cfc5aa558b9b73d2e8ee83c60dfd64be47b3bb6;hpb=72f5c2a07b30ca91b801f05c684e368d3960dd00;p=unfold.git diff --git a/portal/templates/account-view.html b/portal/templates/account-view.html index 3cfc5aa5..b603f632 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 %} - -

User Details

+{% 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%} - - - - -
-
Platform: Myslice
-
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. -

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

+

+
+ +
+
-

Account Information

-

Principal Account

-
-
- +
+
+ +

Principal Account Account used for delegating credentials

+
- - + + + - {% for row in data %} + {% for row in principal_acc %} - + + {%endfor%}
Platform Account TypeAccount_delegationuser_hrnAccount DelegationUser hrnUser Status
{{ row.platform_name }} {{ row.account_type }} {{ row.account_type }} {{ row.delegation_type }} {{ row.usr_hrn }} {{ row.user_status }}
-
-
+ +
- -

Credentials

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

-

-
-
- - - - -

Testbed Accounts

-
-
- - - - - - - - {% for row in ref_acc %} - - - - - - - {%endfor%} -
PlatformAccount TypeReference toRemove Account
{{ row.platform_name }} {{ row.account_type }} {{ row.account_reference }} - -
-
-
- -

Add Accounts

-
-
- - - - - - {% for platform in platform_list %} - - - - - {%endfor%} -
PlatformsRequest Access
{{ platform.platform_no_access }} - -
-
+ {%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 %}