Open Relentlesslba opened 4 years ago
Parsing server responses, in particular: AuthResponse
AuthResponse
When authorization fails, AuthResponse.authorized is false but doesn't print anything. Is this Dart behavior?
AuthResponse.authorized
false
Try: dart bin/manageusers-cli.dart add-user -u firstuser dart bin/manageusers-cli.dart set-pwd -u firstuser -p pwd
dart bin/manageusers-cli.dart add-user -u firstuser
dart bin/manageusers-cli.dart set-pwd -u firstuser -p pwd
Then, dart bin/manageusers-cli.dart auth-user -u firstuser -p pwd will show: user authorized? authorized: true sessionid: 69
dart bin/manageusers-cli.dart auth-user -u firstuser -p pwd
user authorized?
authorized: true
sessionid: 69
But, dart bin/manageusers-cli.dart auth-user -u firstuser -p oops shows: user authorized? sessionid: fail
dart bin/manageusers-cli.dart auth-user -u firstuser -p oops
sessionid: fail
Notice the authorized field is missing. "fail" is just a temporary string for now.
authorized
"fail"
@Relentlesslba lets do a call the next time you're available about this
Parsing server responses, in particular:
AuthResponse
When authorization fails,
AuthResponse.authorized
isfalse
but doesn't print anything. Is this Dart behavior?Try:
dart bin/manageusers-cli.dart add-user -u firstuser
dart bin/manageusers-cli.dart set-pwd -u firstuser -p pwd
Then,
dart bin/manageusers-cli.dart auth-user -u firstuser -p pwd
will show:user authorized?
authorized: true
sessionid: 69
But,
dart bin/manageusers-cli.dart auth-user -u firstuser -p oops
shows:user authorized?
sessionid: fail
Notice the
authorized
field is missing."fail"
is just a temporary string for now.