Skip to content

Cannot log in via desktop client with Login Flow v2 #2191

Description

@savyajha

Expected behaviour

Should be able to log in normally

Actual behaviour

Get this error: "There was an error accessing the 'token' endpoint: Error transferring https://domain/index.php/login/v2 - server replied: Internal Server Error"

Steps to reproduce

  1. Download nextcloud desktop client on either Mac or Windows (Unconfirmed on Linux)
  2. Try to log into account
  3. Fail

Client configuration

Client version: 2.6.3 - 2.6.5. The bug is not present in 2.5.3 (I have downgraded and logged in just fine)

Operating system: Windows 10 as well as macOS Catalina

OS language: en-US (both)

Qt version used by client package (Linux only, see also Settings dialog): N/A

Client package (From Nextcloud or distro) (Linux only): N/A

Installation path of client: Standard paths for both Windows and Mac

Server configuration

Nextcloud version: 19.0.0

Storage backend (external storage): None (local disk)

Logs

Please use Gist (https://gist.github.com/) or a similar code paster for longer
logs.

  1. Client logfile: Do not have this

  2. Web server error log: No output related to this

  3. Server logfile: (Taken from logging console in GUI):

Exception: Argument 1 passed to OC\Security\Crypto::encrypt() must be of the type string, null given, called in /var/lib/html/core/Service/LoginFlowV2Service.php on line 200
    /var/lib/html/lib/private/AppFramework/App.php - line 137:
    OC\AppFramework\Http\Dispatcher->dispatch(OC\Core\Cont ... {}, "init")
    /var/lib/html/lib/private/AppFramework/Routing/RouteActionHandler.php - line 47:
    OC\AppFramework\App::main("OC\\Core\\C ... r", "init", OC\AppFramew ... {}, { _route: "c ... "})
    <<closure>>
    OC\AppFramework\Routing\RouteActionHandler->__invoke({ _route: "c ... "})
    /var/lib/html/lib/private/Route/Router.php - line 297:
    call_user_func(OC\AppFramew ... {}, { _route: "c ... "})
    /var/lib/html/lib/base.php - line 1007:
    OC\Route\Router->match("/login/v2")
    /var/lib/html/index.php - line 37:
    OC::handleRequest()

Caused by TypeError: Argument 1 passed to OC\Security\Crypto::encrypt() must be of the type string, null given, called in /var/lib/html/core/Service/LoginFlowV2Service.php on line 200
    /var/lib/html/core/Service/LoginFlowV2Service.php - line 200:
    OC\Security\Crypto->encrypt("*** sensiti ... *")
    /var/lib/html/core/Controller/ClientFlowLoginV2Controller.php - line 229:
    OC\Core\Service\LoginFlowV2Service->createTokens("Mozilla/5.0 ... )")
    /var/lib/html/lib/private/AppFramework/Http/Dispatcher.php - line 170:
    OC\Core\Controller\ClientFlowLoginV2Controller->init()
    /var/lib/html/lib/private/AppFramework/Http/Dispatcher.php - line 100:
    OC\AppFramework\Http\Dispatcher->executeController(OC\Core\Cont ... {}, "init")
    /var/lib/html/lib/private/AppFramework/App.php - line 137:
    OC\AppFramework\Http\Dispatcher->dispatch(OC\Core\Cont ... {}, "init")
    /var/lib/html/lib/private/AppFramework/Routing/RouteActionHandler.php - line 47:
    OC\AppFramework\App::main("OC\\Core\\C ... r", "init", OC\AppFramew ... {}, { _route: "c ... "})
    <<closure>>
    OC\AppFramework\Routing\RouteActionHandler->__invoke({ _route: "c ... "})
    /var/lib/html/lib/private/Route/Router.php - line 297:
    call_user_func(OC\AppFramew ... {}, { _route: "c ... "})
    /var/lib/html/lib/base.php - line 1007:
    OC\Route\Router->match("/login/v2")
    /var/lib/html/index.php - line 37:
    OC::handleRequest()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Fields

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions