[#946] Remove duplicated code to return auth state result

Description

Summary:

Detailed description

All auth plugins need to add such code:

function checkAuthSession(&$params) { ... if ($userid) { $this->saveduser = usergetobject($userid); if ($this->isSufficient()) { $params['results'][$this->name] = FORGEAUTHAUTHORITATIVEACCEPT; } else { $params['results'][$this->name] = FORGEAUTHNOTAUTHORITATIVE; } } else { $this->saveduser = NULL; if ($this->isRequired()) { $params['results'][$this->name] = FORGEAUTHAUTHORITATIVEREJECT; } else { $params['results'][$this->name] = FORGEAUTHNOTAUTHORITATIVE; } }

which is currently duplicated into several plugins. It would be nice to have a method setting this values in the ForgeAuthPlugin class.

General Information
Submitted by:
Ralf Habacker
Date Submitted: 2021-07-08 10:45
Last Modified by:
Franck Villaume
Last Modified: 2021-08-17 12:19
Date Closed: 2021-08-17 12:19
Permalink: https://fusionforge.org/tracker/a_follow.php/946
Actions
Monitor
Votes: 0/1 (0%)
Internal Fields
Data Type: Feature requests
Assigned to: Ralf Habacker (rhabacker)
State: Closed
Priority: 3
Extra Fields
Resolution:
Accepted
Difficulty:
Simple
Target release:
6.2
Follow-up tabs
Message  ↓
Date: 2021-08-17 12:19
Sender: Franck Villaume

Merged.

Thank you for your contribution.

Date: 2021-07-16 09:55
Sender: Ralf Habacker

Sorry, I mentioned the wrong branch - it is master-946

Date: 2021-07-08 11:06
Sender: Ralf Habacker

see branch master-936 in my personal git repo at https://fusionforge.org/anonscm/git/fusionforge/users/rhabacker.git for a related commit

No attached documents

No related commits.

Field Old Value Date By
status_idOpen2021-08-17 12:19
Franck Villaume
close_dateNone2021-08-17 12:19
Franck Villaume
assigned_tonone2021-08-17 12:19
Franck Villaume
ResolutionNone2021-08-17 12:19
Franck Villaume
DifficultyNone2021-08-17 12:19
Franck Villaume

No relations found.