mirror of https://github.com/jumpserver/jumpserver
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
359 B
13 lines
359 B
3 years ago
|
from django.conf import settings
|
||
|
from onelogin.saml2.settings import OneLogin_Saml2_Settings
|
||
|
|
||
|
|
||
|
class JmsSaml2Settings(OneLogin_Saml2_Settings):
|
||
|
def get_sp_key(self):
|
||
|
key = getattr(settings, 'SAML2_SP_KEY_CONTENT', '')
|
||
|
return key
|
||
|
|
||
|
def get_sp_cert(self):
|
||
|
cert = getattr(settings, 'SAML2_SP_CERT_CONTENT', '')
|
||
|
return cert
|