Skip to content

Commit

Permalink
app type extended_authentication
Browse files Browse the repository at this point in the history
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
  • Loading branch information
ArtificialOwl committed Apr 12, 2023
1 parent 9edc3aa commit fc29b0d
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions lib/base.php
Original file line number Diff line number Diff line change
Expand Up @@ -1027,6 +1027,7 @@ public static function handleRequest(): void {

// Always load authentication apps
OC_App::loadApps(['authentication']);
OC_App::loadApps(['extended_authentication']);

// Load minimum set of apps
if (!\OCP\Util::needUpgrade()
Expand Down
2 changes: 1 addition & 1 deletion lib/private/Updater.php
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ protected function doCoreUpgrade(): void {
*/
protected function doAppUpgrade(): void {
$apps = \OC_App::getEnabledApps();
$priorityTypes = ['authentication', 'filesystem', 'logging'];
$priorityTypes = ['authentication', 'extended_authentication', 'filesystem', 'logging'];
$pseudoOtherType = 'other';
$stacks = [$pseudoOtherType => []];

Expand Down
1 change: 1 addition & 0 deletions ocs/v1.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
try {
OC_App::loadApps(['session']);
OC_App::loadApps(['authentication']);
OC_App::loadApps(['extended_authentication']);

// load all apps to get all api routes properly setup
// FIXME: this should ideally appear after handleLogin but will cause
Expand Down
1 change: 1 addition & 0 deletions public.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@
// Load all required applications
\OC::$REQUESTEDAPP = $app;
OC_App::loadApps(['authentication']);
OC_App::loadApps(['extended_authentication']);
OC_App::loadApps(['filesystem', 'logging']);

if (!\OC::$server->getAppManager()->isInstalled($app)) {
Expand Down
1 change: 1 addition & 0 deletions remote.php
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ function resolveService($service) {
// Load all required applications
\OC::$REQUESTEDAPP = $app;
OC_App::loadApps(['authentication']);
OC_App::loadApps(['extended_authentication']);
OC_App::loadApps(['filesystem', 'logging']);

switch ($app) {
Expand Down
1 change: 1 addition & 0 deletions resources/app-info-shipped.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,7 @@
<xs:element name="prelogin" minOccurs="0" maxOccurs="1"/>
<xs:element name="filesystem" minOccurs="0" maxOccurs="1"/>
<xs:element name="authentication" minOccurs="0" maxOccurs="1"/>
<xs:element name="extended_authentication" minOccurs="0" maxOccurs="1"/>
<xs:element name="logging" minOccurs="0" maxOccurs="1"/>
<xs:element name="dav" minOccurs="0" maxOccurs="1"/>
<xs:element name="prevent_group_restriction" minOccurs="0"
Expand Down
1 change: 1 addition & 0 deletions resources/app-info.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,7 @@
<xs:element name="prelogin" minOccurs="0" maxOccurs="1"/>
<xs:element name="filesystem" minOccurs="0" maxOccurs="1"/>
<xs:element name="authentication" minOccurs="0" maxOccurs="1"/>
<xs:element name="extended_authentication" minOccurs="0" maxOccurs="1"/>
<xs:element name="logging" minOccurs="0" maxOccurs="1"/>
<xs:element name="dav" minOccurs="0" maxOccurs="1"/>
<xs:element name="prevent_group_restriction" minOccurs="0"
Expand Down

0 comments on commit fc29b0d

Please sign in to comment.