mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-10 23:45:44 +01:00
Fix extension point injection
This commit is contained in:
@@ -321,8 +321,6 @@ public class ScmServletModule extends ServletModule
|
|||||||
// bind(LastModifiedUpdateListener.class);
|
// bind(LastModifiedUpdateListener.class);
|
||||||
|
|
||||||
bind(PushStateDispatcher.class).toProvider(PushStateDispatcherProvider.class);
|
bind(PushStateDispatcher.class).toProvider(PushStateDispatcherProvider.class);
|
||||||
|
|
||||||
bind(JwtAccessTokenRefreshStrategy.class).to(DefaultJwtAccessTokenRefreshStrategy.class);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ package sonia.scm.security;
|
|||||||
|
|
||||||
import sonia.scm.plugin.ExtensionPoint;
|
import sonia.scm.plugin.ExtensionPoint;
|
||||||
|
|
||||||
@ExtensionPoint
|
@ExtensionPoint(multi = false)
|
||||||
public interface JwtAccessTokenRefreshStrategy {
|
public interface JwtAccessTokenRefreshStrategy {
|
||||||
boolean shouldBeRefreshed(JwtAccessToken oldToken);
|
boolean shouldBeRefreshed(JwtAccessToken oldToken);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user