Skip to content

3.1 admin login fails with 401 #7140

@erdinc

Description

@erdinc

Describe the bug
After upgrading from 3.0 to 3.1 I can't access to admin dashboard. Login page displays and after entering the credentials URL changes to /admin but then redirects to /admin/auth/login

Steps to reproduce the behavior

  1. follow the migration steps for 3.0 to 3.1
  2. navigate to /admin
  3. enter credentials for admin user
  4. you will be redirected to /admin/auth/login

Expected behavior
Admin UI should be displayed

Screenshots
If applicable, add screenshots to help explain your problem.

Code snippets

[2020-07-23T14:28:01.827Z] debug POST /admin/login (134 ms) 200
[2020-07-23T14:28:01.967Z] debug GET /admin/users/me/permissions (64 ms) 401
[2020-07-23T14:28:01.975Z] debug GET /content-manager/content-types (62 ms) 401

I see permission errors at server logs.

System

  • Node.js version: v12.18.3
  • NPM version: 6.14.6
  • Strapi version: 3.1
  • Database: postgresql
  • Operating system: macos

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