add link to oidc in user profile
This commit is contained in:
parent
3cf87f7f95
commit
7a128e6e7f
|
@ -39,6 +39,11 @@
|
|||
<li class="nav-item">
|
||||
<button class="nav-link" data-bs-toggle="tab" data-bs-target="#profile-sanitization-entity">Sanitization Entity</button>
|
||||
</li>
|
||||
{% if oidc %}
|
||||
<li class="nav-item">
|
||||
<a href="{{ url_for('oidc.create_client') }}" class="nav-link">OpenID Connect</a>
|
||||
</li>
|
||||
{% endif %}
|
||||
</ul>
|
||||
<div class="tab-content pt-2">
|
||||
|
||||
|
|
|
@ -104,11 +104,13 @@ class UserProfileView(GenericMixin):
|
|||
if g.user.sanitization_entity:
|
||||
sanitization = g.user.sanitization_entity
|
||||
sanitization_form = SanitizationEntityForm(obj=sanitization)
|
||||
oidc = 'oidc' in app.blueprints.keys()
|
||||
self.context.update(
|
||||
{
|
||||
'current_user': current_user,
|
||||
'password_form': PasswordForm(),
|
||||
'sanitization_form': sanitization_form,
|
||||
'oidc': oidc,
|
||||
}
|
||||
)
|
||||
|
||||
|
|
Reference in New Issue