snips11
2 years ago
266
2
Laravel

Passport grant client- unsupported grant type error

Posted 2 years ago by snips11

I am trying use Passport to authorise access from an iOS app I however, get the response in xCode of

JSON: {
    error = "invalid_client";
    message = "Client authentication failed";
}

and in Postman

unsupported grant type

The params seem to be correct my end,

let parameters: Parameters =   [
            "grant_type" : "password",
            "client_id" : "4",
            "client_secret" : "***",
            "username" : self.userInput.text!,
            "password" : self.passwordInput.text!,
            "scope" : "*",]

Am I missing something to be causing the error?

Please sign in or create an account to participate in this conversation.