Skip to content

Unable to log in to SCOT - bad CSRF token #63

Open
@loucdg

Description

@loucdg

I resolved a number of issues to get the containers up and SCOT listening, but I am now stumped with getting authenticated. I get the error "Failed to log in due to bad CSRF token. Please reload the page and then log in. Error: Failed CSRF check.

The logs show:
POST "/auth"
Template "bad_csrf.html.ep" not found
403 Forbidden (0.001077s, 928.505/s)

I've used admin/admin (building the demo site). That didn't work. I changed the password and set the hash in Mongo, that didn't work either.

Here's the SCOT startup log:

Routing to a callback
304 Not Modified (0.007052s, 141.804/s)
POST "/scotaq/amq"
Template "not_found.development.html.ep" not found
Template "not_found.html.ep" not found
Rendering template "mojo/debug.html.ep"
GET "/scot/api/v2/whoami"
GET "/scot/api/v2/status"
GET "/scot/api/v2/handler"
Template "mojo/menubar.html.ep" not found
Routing to controller "Scot::Controller::Auth" and action "check"
401 Unauthorized (0.040213s, 24.868/s)
404 Not Found (0.061014s, 16.390/s)

Thinking this is a problem with the mojo CSRF plugin, and/or missing code in the headers but I'm not sure where to modify those.

Help would be appreciated!

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