Skip to content

Can't use Oauth2 resource owner login way #58

Open

Description

@filol

Describe the bug
Can't connect via auth/login-token

I have add my user's id in user_id column of auth_clients table (and save it) but i still get this error :

{
    "error": {
        "statusCode": 401,
        "name": "UnauthorizedError",
        "message": "Bearer realm=\"Users\""
    }
}

The request body: (with the same body i can get the code with

{
    "client_id": "webapp",
    "client_secret": "saqw21!@",
    "username": "super_admin",
    "password": "test123!@#"
}

Activity

  1. mayank-SFIN571 commented on Aug 17, 2020

    @mayank-SFIN571

    Hi @filol ,
    This error denotes that 'Bearer' is not attached to the token (which is being sent in the headers in the key 'Authorization').
    But for this particular api, this should not be the case. This api does not expect any token.
    Can you share the changes that you might have made in the api?

  2. filol commented on Aug 23, 2020

    @filol
    Author

    @mayank-SFIN571 i have just update deps (why they are so out of date ?) and activate the db migration tool of lb (the native one)

  3. samarpan-b commented on Sep 8, 2020

    @samarpan-b
    Contributor

    @mayank-SFIN571 can u please check which dependency is not up to date ?

  4. samarpan-b commented on Feb 27, 2021

    @samarpan-b
    Contributor

    #65 might resolve this issue. @filol can you please check ?

  5. akshatdubeysf commented on May 18, 2021

    @akshatdubeysf
    Contributor

    @filol can you please confirm if it is okay to close this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions