File tree Expand file tree Collapse file tree 5 files changed +5
-17
lines changed
src/main/java/org/jcasbin/plugins Expand file tree Collapse file tree 5 files changed +5
-17
lines changed Original file line number Diff line number Diff line change 7
7
<groupId >org.jcasbin.plugins</groupId >
8
8
<artifactId >jcasbin-springboot-plugin</artifactId >
9
9
<version >0.0.1</version >
10
- <build >
11
- <plugins >
12
- <plugin >
13
- <groupId >org.apache.maven.plugins</groupId >
14
- <artifactId >maven-compiler-plugin</artifactId >
15
- <configuration >
16
- <source >8</source >
17
- <target >8</target >
18
- </configuration >
19
- </plugin >
20
- </plugins >
21
- </build >
22
10
23
11
<name >jCasbin JFinal Plugin</name >
24
12
<description >Demo project for JFinal</description >
Original file line number Diff line number Diff line change @@ -69,8 +69,8 @@ public void configPlugin(Plugins me) {
69
69
* 配置全局拦截器
70
70
*/
71
71
public void configInterceptor (Interceptors me ) {
72
- me .add (new HttpBasicAuthnIntercepter ());
73
- me .add (new JCasbinAuthzIntercepter ());
72
+ me .add (new HttpBasicAuthnInterceptor ());
73
+ me .add (new JCasbinAuthzInterceptor ());
74
74
}
75
75
76
76
/**
Original file line number Diff line number Diff line change 17
17
import com .jfinal .aop .Before ;
18
18
import com .jfinal .core .Controller ;
19
19
20
- @ Before (JCasbinAuthzIntercepter .class )
20
+ @ Before (JCasbinAuthzInterceptor .class )
21
21
public class DemoController extends Controller {
22
22
public void index () {
23
23
String path = getRequest ().getRequestURI ();
Original file line number Diff line number Diff line change 24
24
import java .util .Base64 ;
25
25
import java .util .StringTokenizer ;
26
26
27
- public class HttpBasicAuthnIntercepter implements Interceptor {
27
+ public class HttpBasicAuthnInterceptor implements Interceptor {
28
28
private String realm = "Protected" ;
29
29
30
30
@ Override
Original file line number Diff line number Diff line change 23
23
import java .nio .charset .Charset ;
24
24
import java .util .Base64 ;
25
25
26
- public class JCasbinAuthzIntercepter implements Interceptor {
26
+ public class JCasbinAuthzInterceptor implements Interceptor {
27
27
static Enforcer enforcer ;
28
28
29
29
// Initialize jCasbin's enforcer with model and policy rules.
You can’t perform that action at this time.
0 commit comments