Skip to content

The key authentication.currentUser was not bound to any value (mixed auth/noauth controller) #1275

@joeytwiddle

Description

@joeytwiddle

I have started from a generated server and tried following the authentication instructions.

But whenever I try to access an authenticated a route, I see this error:

Unhandled error in GET /whoami: 500 Error: The key authentication.currentUser was not bound to any value.

Where is the CURRENT_USER provider supposed to get added to the registry? ☑️ Answered below.

Is there an example server with working authentication anywhere? ☑️ Got one below. Thanks virkt25!

Another thing to note is that the verify() function in MyAuthStrategyProvider never gets called. Although it does get called in virkt25's example, so I need to work out what the difference is between our projects.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions