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

Clarification is needed on what a valid username is #335

Open
timothydilbert opened this issue Sep 12, 2024 · 0 comments
Open

Clarification is needed on what a valid username is #335

timothydilbert opened this issue Sep 12, 2024 · 0 comments

Comments

@timothydilbert
Copy link

timothydilbert commented Sep 12, 2024

All of the Zendesk documentation refers to the username being [email protected]/token. The ZendeskApiClient only wants the email portion.

To avoid confusion, you should either:

# Change from this:
IServiceCollection.AddZendeskClient(string endpointUri, string username, string token)

# To This:
IServiceCollection.AddZendeskClient(string endpointUri, string email_address, string token)

Or, you should put in validation that throws an Exception when the username variable ends with /token.

@timothydilbert timothydilbert changed the title Keep getting "Unauthorised" errors when trying to do a simple zendesk.Search.SearchAsync command Clarification is needed on what a valid username is Sep 13, 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

No branches or pull requests

1 participant