소스 검색

jicofo: reintroduce shibboleth auth

Fixes #956
duritong 4 년 전
부모
커밋
c89ccc9
1개의 변경된 파일7개의 추가작업 그리고 0개의 파일을 삭제
  1. 7 0
      jicofo/rootfs/defaults/jicofo.conf

+ 7 - 0
jicofo/rootfs/defaults/jicofo.conf

@@ -9,10 +9,17 @@ jicofo {
       // The type of authentication. Supported values are XMPP, JWT or SHIBBOLETH (default).
       {{ if eq $AUTH_TYPE "jwt" }}
       type = JWT
+      {{ else if eq $AUTH_TYPE "shibboleth" }}
+      type = SHIBBOLETH
       {{ else }}
       type = XMPP
       {{ end }}
+      {{ if eq $AUTH_TYPE "shibboleth" }}
+      login-url = "shibboleth:default"
+      logout-url = "shibboleth:default"
+      {{ else }}
       login-url = "{{ .Env.XMPP_DOMAIN }}"
+      {{ end }}
     }
     {{ end }}