Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't use Oauth2 resource owner login way #58

Open
filol opened this issue Aug 5, 2020 · 5 comments
Open

Can't use Oauth2 resource owner login way #58

filol opened this issue Aug 5, 2020 · 5 comments

Comments

@filol
Copy link

filol commented Aug 5, 2020

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!@#"
}
@mayank-SFIN571
Copy link

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?

@filol
Copy link
Author

filol commented Aug 23, 2020

@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)

@samarpan-b
Copy link
Contributor

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

@samarpan-b
Copy link
Contributor

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

@akshatdubeysf
Copy link
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
Projects
None yet
Development

No branches or pull requests

4 participants