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'];
        }

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requesthelp wantedExtra attention is needed

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions