classes/page/acp.php [72:83]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    public function mode_adminconsent() {
        $auth = new \auth_oidc\loginflow\authcode;
        $auth->set_httpclient(new \auth_oidc\httpclient());
        $stateparams = [
            'redirect' => '/admin/settings.php?section=local_o365',
            'justauth' => true,
            'forceflow' => 'authcode',
            'action' => 'adminconsent',
        ];
        $extraparams = ['prompt' => 'admin_consent'];
        $auth->initiateauthrequest(true, $stateparams, $extraparams);
    }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



classes/page/acp.php [88:99]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    public function mode_setsystemuser() {
        $auth = new \auth_oidc\loginflow\authcode;
        $auth->set_httpclient(new \auth_oidc\httpclient());
        $stateparams = [
            'redirect' => '/admin/settings.php?section=local_o365',
            'justauth' => true,
            'forceflow' => 'authcode',
            'action' => 'setsystemapiuser',
        ];
        $extraparams = ['prompt' => 'admin_consent'];
        $auth->initiateauthrequest(true, $stateparams, $extraparams);
    }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



