Skip to content

auth_property_name envar #431

Description

@0kn0t0K

Should there be a envar in template.env for auth_property_name in Azure AD (Entra) authentication section?

It is coded in app/Plugin/AadAuth/Controller/Component/Auth/AadAuthenticateAuthenticate.php

self::$auth_property_name =  Configure::read('AadAuth.auth_property_name') ?? 'userPrincipalName';
        public function __construct()
        {
                self::$client_id = Configure::read('AadAuth.client_id');
                self::$ad_tenant =  Configure::read('AadAuth.ad_tenant');
                self::$client_secret =  Configure::read('AadAuth.client_secret');
                self::$redirect_uri =  Configure::read('AadAuth.redirect_uri');
                self::$auth_provider =  Configure::read('AadAuth.auth_provider');
                self::$auth_provider_user =  Configure::read('AadAuth.auth_provider_user');
                self::$misp_user =  Configure::read('AadAuth.misp_user');
                self::$misp_orgadmin =  Configure::read('AadAuth.misp_orgadmin');
                self::$misp_siteadmin =  Configure::read('AadAuth.misp_siteadmin');
                self::$check_ad_groups =  Configure::read('AadAuth.check_ad_groups');
                self::$auth_property_name =  Configure::read('AadAuth.auth_property_name') ?? 'userPrincipalName';

                $this->Log = ClassRegistry::init('Log');
                $this->Log->create();

                $this->settings['fields'] = ['username' => 'email'];
        }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions