Invalid client in aqueduct's db_and_auth/wildfire example


I am new to Aqueduct and I am facing a invalid client error whenever I try to make a request to the /auth/token or /auth/code route. I have already added the OAuth2.0 client and verified the secret is correct. My request to /auth/token looks like this:

Future main() async { var http2 = new http.Client(); var clientID = "com.wildfire.mobile"; var clientSecret = "myspecialsecret "; var body = "username=usr&password=pwd&grant_type=password"; var clientCredentials = new Base64Encoder().convert( "$clientID:$clientSecret".codeUnits); var response = await http.post( "http://localhost:8081/auth/token", headers: { "Content-Type": "application/x-www-form-urlencoded", "Authorization": "Basic $clientCredentials" }, body: body);

And when I try logging in in /auth/code with a username in the _user database the server throws a 400:invalid_client


It was indeed a misconfiguration issue. After deleting all my databases, I added a database.yaml file, which I thought was the same as the config.yaml but apparently is not. The database.yaml looks like this:

username: adan password: pass host: localhost port: 5432 databaseName: wildfire_db

while the config.yaml looks like this:

database: username: adan password: pass host: localhost port: 5432 databaseName: wildfire_db

I also ran the aqueduct auth and aqueduct db commands without the --connect flag, i.e. using the config files.


  • Mule Box Connector - Invalid Key Type / Message payload is of type String
  • value from promise is not being exported to another module
  • How to run downloaded App Router via Service Marketplace
  • Datatables: custom function inside of fnRowCallback
  • using class interface as a parameter in wcf service
  • connecting to web api using c#
  • Image resizing issue when keyboard open in android mobile
  • Connecting Couchbase sync adapter to couchdb server
  • Android WebView does not display web page correctly
  • Google script gmail addon update TextInput value,on change function
  • $this->db->insert_id(); returning 0 every time in codeigniter [duplicate]
  • jQuery single page mobile app
  • Store specific data in variable from another variable with regex with PHP
  • Clickable Webcontrol, ASP.NET
  • Why are my web pages zoomed in when I open them in Opera Mobile?
  • Sticky Footer W/JQuery Mobile
  • cordova build android throws error on Ubuntu 12.04
  • Unique SMS sender id?
  • jQueryMobile, Ajax Navigation, and MVC
  • Which browser have this strange user agent? (IOS device)
  • Write output of for loop to multiple files
  • Error in installing package: fatal error: stdlib.h: no such file or directory
  • cygwin cannot exec 'git-add--interactive' permission denied
  • Spring Cloud Microservice Architecture Confusion
  • error importing numpy
  • Alternative To body {overflow:scroll;} That Will Prevent Page Jostling/Wriggling?
  • Transactional Create with Validation in ServiceStack Redis Client
  • Play WS (2.2.1): post/put large request
  • Handling un-mapped Rest path
  • PHP - How to update data to MySQL when click a radio button
  • How to redirect a user to a different server and include HTTP basic authentication credentials?
  • Warning: Can't call setState (or forceUpdate) on an unmounted component
  • bootstrap to use multiple ng-app
  • using conditional logic : check if record exists; if it does, update it, if not, create it
  • How to get icons for entities from eclipse?
  • Codeigniter doesn't let me update entry, because some fields must be unique
  • Getting error when using KSoap library to consume .NET web services
  • Turn off referential integrity in Derby? is it possible?
  • JaxB to read class hierarchy
  • How to Embed XSL into XML