fixes for OIDC authentication
This commit is contained in:
parent
f27b0f952f
commit
7a3f956670
2 changed files with 4 additions and 3 deletions
|
|
@ -3,14 +3,15 @@
|
|||
|
||||
<metal:login define-macro="login_form"
|
||||
i18n:domain="cco.member"
|
||||
tal:define="principal request/principal/id">
|
||||
tal:define="principal request/principal/id;
|
||||
camefrom python:request.get('camefrom') or request.URL[-1]">
|
||||
<p style="color: Red"
|
||||
tal:condition="request/error_message|nothing"
|
||||
i18n:translate=""
|
||||
tal:content="request/error_message" />
|
||||
<h2 i18n:translate="title_login">Login</h2>
|
||||
<p i18n:domain="loops"
|
||||
tal:condition="view/oidc_allowed">
|
||||
tal:condition="item/oidc_allowed">
|
||||
<a tal:attributes="href string:/@@auth_login?camefrom=$camefrom"
|
||||
i18n:translate="login-with-oidc">Login with OpenID Connect (Zitadel)</a>
|
||||
</p>
|
||||
|
|
|
|||
|
|
@ -73,7 +73,7 @@ class LoginBase:
|
|||
return 'legacy'
|
||||
|
||||
@Lazy
|
||||
def oidc_Allowed(self):
|
||||
def oidc_allowed(self):
|
||||
return self.authMethod in ('select', 'oidc')
|
||||
|
||||
def authOidc(self):
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue