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

503 - User is not defined #19

Open
kosicki123 opened this issue Jul 31, 2017 · 6 comments
Open

503 - User is not defined #19

kosicki123 opened this issue Jul 31, 2017 · 6 comments

Comments

@kosicki123
Copy link

Hi, I'm having this error using MySQL. I've just changed the path to the database. Nothing else was changed. Any ideas?
{
"statusCode": 503,
"status": 503,
"code": 503,
"message": "user is not defined",
"name": "server_error",
"inner": {}
}

@kosicki123
Copy link
Author

The problem was validateScope method. Commenting it fixed the issue, but probably mess up another thing.

@kosicki123
Copy link
Author

Any idea on how to properly validate the scope? Scope parameter is always undefined.
function validateScope(user, client, scope) {
}

@mas-iota
Copy link

@kosicki123 Have you solved it yet ?!

@walank
Copy link

walank commented Sep 12, 2017

It works for me after I replaced:
function validateScope(token, client) {
with
function validateScope(user,client,scope) {

@kosicki123
Copy link
Author

Nope, still unsolved :(

@gustavoandrade10
Copy link

This should work

function validateScope(user, client, scope) {
return (user.scope === 'profile') ? 'profile' : false
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants