public function login(string $roleId, string $secretId)
    {
        $body = ['role_id' => $roleId, 'secret_id' => $secretId];
        $params = [
            'body' => json_encode($body)
        ];
        return \GuzzleHttp\json_decode($this->client->post('/v1/auth/approle/login', $params)->getBody());
    }
public function login(string $roleId, string $secretId)
    {
        $body = ['role_id' => $roleId, 'secret_id' => $secretId];
        $params = [
            'body' => json_encode($body)
        ];
        return \GuzzleHttp\json_decode($this->client->post('/v1/auth/approle/login', $params)->getBody());
    }
public function login ( string $ roleId , string $ secretId ) { $ body = [ 'role_id' => $ roleId , 'secret_id' => $ secretId ] ; $ params = [ 'body' => json_encode ( $ body ) ] ; return \ GuzzleHttp \ json_decode ( $ this -> client -> post ( '/v1/auth/approle/login' , $ params ) -> getBody ( ) ) ; }
Issues a Vault token based on the presented credentials.
@param string $roleId The role_id in Vault
@param string $secretId The secret_id in Vault
@return mixed
Issues a Vault token based on the presented credentials .