-
-
Notifications
You must be signed in to change notification settings - Fork 524
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
Support for Zendesk #2217
base: dev
Are you sure you want to change the base?
Support for Zendesk #2217
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -2153,6 +2153,27 @@ | |||||
<Environment Issuer="https://api.login.yahoo.com/" /> | ||||||
</Provider> | ||||||
|
||||||
<Provider Name="Zendesk" Id="5577b117-1f3d-464f-b987-aabf7c0ab3f7" Documentation="https://developer.zendesk.com/api-reference/introduction/security-and-auth/#oauth-access-token"> | ||||||
|
||||||
<!--Note: Zendesk is a multitenant provider that relies on subdomains to identify instances. | ||||||
As such, the following URLs all include a {settings.Tenant} placeholder that will be dynamically | ||||||
replaced by OpenIddict at runtime by the tenant configured in the Zendesk settings.--> | ||||||
|
||||||
<Environment Issuer="https://{settings.Tenant}.zendesk.com/"> | ||||||
<Configuration AuthorizationEndpoint="https://{settings.Tenant}.zendesk.com/oauth/authorizations/new" | ||||||
TokenEndpoint="https://{settings.Tenant}.zendesk.com/oauth/tokens" | ||||||
UserInfoEndpoint="https://{settings.Tenant}.zendesk.com/api/v2/users/me"> | ||||||
<CodeChallengeMethod Value="S256" /> | ||||||
<GrantType Value="authorization_code" /> | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
When |
||||||
|
||||||
</Configuration> | ||||||
</Environment> | ||||||
<Setting PropertyName="Tenant" ParameterName="tenant" Type="String" Required="true" | ||||||
Description="Gets or sets the tenant used to identify the Zendesk instance." /> | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
(the . is automagically added by the generator) |
||||||
<Setting PropertyName="ClientType" ParameterName="kind" Type="String" Required="false" | ||||||
DefaultValue="confidential" Description="Client Type: public or confidential. Public OAuth clients are applications that run in environments where credentials cannot be securely stored, such as mobile and web apps. These clients are required to use PKCE. Confidential OAuth clients run on secure servers where their credentials can be kept secure. These clients can use PKCE, client secret, or both." /> | ||||||
Comment on lines
+2173
to
+2174
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
This setting shouldn't be needed (and since you didn't write custom code to do something based on its value, it really has no effect whatsoever) 😃 |
||||||
</Provider> | ||||||
|
||||||
<!-- | ||||||
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ | ||||||
██ ▄▄▄ ██ ▄▄▄ ██ ██ ██ ▄▄▄ ██ | ||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's use https://support.zendesk.com/hc/en-us/articles/4408845965210-Using-OAuth-authentication-with-your-application instead of https://developer.zendesk.com/api-reference/introduction/security-and-auth/#oauth-access-token as the last one doesn't contain anything really useful.