mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-08 14:35:45 +01:00
created small user-agent detection framework to choose the right encoding for basic authentication
This commit is contained in:
@@ -79,6 +79,7 @@ import javax.servlet.ServletContext;
|
||||
import javax.servlet.ServletContextListener;
|
||||
|
||||
import javax.xml.bind.JAXB;
|
||||
import sonia.scm.web.BrowserUserAgentProvider;
|
||||
|
||||
/**
|
||||
*
|
||||
@@ -575,7 +576,13 @@ public class DefaultPluginLoader implements PluginLoader
|
||||
new AnnotatedClass<Extension>(
|
||||
Extensions.createExtension(),
|
||||
DefaultAuthenticationHandler.class
|
||||
)
|
||||
)
|
||||
);
|
||||
extensions.add(
|
||||
new AnnotatedClass<Extension>(
|
||||
Extensions.createExtension(),
|
||||
BrowserUserAgentProvider.class
|
||||
)
|
||||
);
|
||||
//J+
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user