mirror of
https://github.com/MobSF/Mobile-Security-Framework-MobSF.git
synced 2026-10-12 02:06:59 +00:00
Saml group mapping (#2487)
* add SSO groups mapping * typo corrected --------- Co-authored-by: Khabarov Konstantin Olegovich <[email protected]> Co-authored-by: Ajin Abraham <[email protected]>
This commit is contained in:
co-authored by
Khabarov Konstantin Olegovich
Ajin Abraham
parent
05206e72ca
commit
ae34f7c055
@@ -379,6 +379,8 @@ IDP_ENTITY_ID = os.getenv('MOBSF_IDP_ENTITY_ID')
|
||||
IDP_SSO_URL = os.getenv('MOBSF_IDP_SSO_URL')
|
||||
IDP_X509CERT = os.getenv('MOBSF_IDP_X509CERT')
|
||||
IDP_IS_ADFS = os.getenv('MOBSF_IDP_IS_ADFS', '0')
|
||||
IDP_MAINTAINER_GROUP = os.getenv('MOBSF_IDP_MAINTAINER_GROUP', 'Maintainer')
|
||||
IDP_VIEWER_GROUP = os.getenv('MOBSF_IDP_VIEWER_GROUP', 'Viewer')
|
||||
# SP Configuration
|
||||
SP_HOST = os.getenv('MOBSF_SP_HOST')
|
||||
SP_ALLOW_PASSWORD = os.getenv('MOBSF_SP_ALLOW_PASSWORD', '0')
|
||||
|
||||
@@ -49,8 +49,8 @@ class Permissions(Enum):
|
||||
DELETE = f'StaticAnalyzer.{PERM_CAN_DELETE}'
|
||||
|
||||
|
||||
MAINTAINER_GROUP = 'Maintainer'
|
||||
VIEWER_GROUP = 'Viewer'
|
||||
MAINTAINER_GROUP = settings.IDP_MAINTAINER_GROUP
|
||||
VIEWER_GROUP = settings.IDP_VIEWER_GROUP
|
||||
|
||||
|
||||
def permission_required(perm):
|
||||
|
||||
Reference in New Issue
Block a user