{% extends 'base.html' %}
{% block content %}
Log in
{% if g.user %}
Refresh Log out
Logged in as {{ g.user.name }}
{% endif %}
{% if g.user %}
User identities
{% for identity in g.user.identities %}
{% set groups = (identity.provider_impl.supports_get_identity_groups and
identity.provider_impl.get_identity_groups(identity.identifier)) %}
{{ identity.provider }}: {{ identity.identifier }}
{% if groups %}
[{{ groups|sort(attribute='name')|join(', ', attribute='name') }}]
{% endif %}