You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (!isset($data['user']['id']) && empty($data['user']['domain'])) {
96
+
if (isset($userOptions['user'])) {
97
+
$userOptions['methods'] = ['password'];
98
+
if (!isset($userOptions['user']['id']) && empty($userOptions['user']['domain'])) {
99
99
thrownewInvalidArgumentException('When authenticating with a username, you must also provide either the domain name '.'or domain ID to which the user belongs to. Alternatively, if you provide a user ID instead, '.'you do not need to provide domain information.');
if (!isset($userOptions['application_credential']['id']) || !isset($userOptions['application_credential']['secret'])) {
104
104
thrownewInvalidArgumentException('When authenticating with a application_credential, you must provide application credential ID '.' and application credential secret.');
105
105
}
106
-
} elseif (isset($data['tokenId'])) {
107
-
$data['methods'] = ['token'];
106
+
} elseif (isset($userOptions['tokenId'])) {
107
+
$userOptions['methods'] = ['token'];
108
108
} else {
109
109
thrownewInvalidArgumentException('Either a user, tokenId or application_credential must be provided.');
0 commit comments