CyberfusionIO / cyberfusion-cluster-api-client

Cyberfusion Core API client
https://core-api.cyberfusion.io
MIT License
5 stars 3 forks source link

Do not filter fields for the login endpoints #36

Closed dvdheiden closed 1 year ago

dvdheiden commented 1 year ago

Changes

Fixed

Thanks to @mbardelmeijer

Checks

dvdheiden commented 1 year ago

@mbardelmeijer

$login = (new Login())
    ->setUsername('username')
    ->setPassword('password');

$response = $api
    ->authentication()
    ->login($login);

Results in:

Cyberfusion\ClusterApi\Response {#2402
  -statusCode: 200
  -statusMessage: "OK"
  -data: array:1 [
    "token" => Cyberfusion\ClusterApi\Models\Token {#2385
      -accessToken: "helemooietokengefilterdvanwegevoordehandliggendesecurityredenen"
      -tokenType: "bearer"
      -expiresIn: 1800
    }
  ]
}