shared index authentication
已回答
Is it possible to enable authentication for shared index downloads? There are no options to put in any kinds of auth, and there are no mention of auth in the documentation either. Thanks.
请先登录再写评论。
Shared Indexes do not require any auth to work. The pre-built public shared indexes are OK to download without any authentication, we build all necessary indexes ourselves. In addition to that, you may set-up your private project-specific shared indexes.
There is an extension point inside the shared indexes plugin that is used to provide authentication for the project shared indexes (for more details, check out the com.intellij.indexing.shared.download.SharedIndexDownloadAuthExtension class). You'd need to implement a plugin for IntelliJ to support a custom authentication for the project shared indexes scenario.
Thanks Eugene, that's nice. Can you please point me to the right direction for com.intellij.indexing.shared.download.SharedIndexDownloadAuthExtension? I couldn't seem to find it.
Best,
The extension point that Eugene mentioned is called:
Thanks Jakub. Sorry I am new to this. Can you please point me to the right doc on how to configure sharedIndexDownloadExtension?
Jakub Chrzanowski I need to add a custom authentication method for downloading shared indexes (basically adding a custom header to the http request). Is there a simpler way to do that, or do I have to create a plugin for that? Also, I don't see the
sharedIndexDownloadExtension
extension point in the extension points list - did something changed since?
These EPs are defined in Shared Indexes plugin (https://www.jetbrains.com/help/idea/shared-indexes.html), so a dependency must be added (https://plugins.jetbrains.com/docs/intellij/plugin-dependencies.html) with plugin ID: