Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add application credential authentication type #354

Closed

Conversation

kamibutt143
Copy link

No description provided.

Copy link
Member

@k0ka k0ka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, we definitely will need tests and documentation for it.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this file should be removed

if (!isset($data['application_credential']['id']) && empty($data['application_credential']['secret'])) {
throw new \InvalidArgumentException('To authenticate with an application credential, specify “application_credential” as the auth method. The ID of the application credential used for authentication. The secret for authenticating the application credential.');
}
} elseif (isset($data['tokenId'])) {
$data['methods'] = ['token'];
} else {
throw new \InvalidArgumentException('Either a user or token must be provided.');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Error is not valid anymore. Add application_credentials there.

@k0ka
Copy link
Member

k0ka commented Jan 7, 2024

@k0ka k0ka closed this Jan 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants