mirror of
				https://github.com/scm-manager/scm-manager.git
				synced 2025-10-31 02:25:53 +01:00 
			
		
		
		
	Handle Plugin Center Authentication failures (#1940)
If the plugin center authentication fails, the plugins are fetched without authentication and a warning is displayed on the plugin page. Co-authored-by: Konstantin Schaper <konstantin.schaper@cloudogu.com>
This commit is contained in:
		| @@ -132,7 +132,7 @@ class PluginInstaller { | ||||
|   private InputStream download(AvailablePlugin plugin) throws IOException { | ||||
|     AdvancedHttpRequest request = client.get(plugin.getDescriptor().getUrl()).spanKind(SPAN_KIND); | ||||
|     if (authenticator.isAuthenticated()) { | ||||
|       request.bearerAuth(authenticator.fetchAccessToken()); | ||||
|       authenticator.fetchAccessToken().ifPresent(request::bearerAuth); | ||||
|     } | ||||
|     return request.request().contentAsStream(); | ||||
|   } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user