Skip to content

Commit 57cc5e9

Browse files
committed
new: reworked authorization on EndpointExtension
1 parent 05356f8 commit 57cc5e9

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

Diff for: pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
<groupId>org.lowcoder.plugin</groupId>
77
<artifactId>lowcoder-plugin-api</artifactId>
8-
<version>2.1.0</version>
8+
<version>2.3.0</version>
99

1010
<name>lowcoder-plugin-api</name>
1111
<description>Lowcoder shared plugin interfaces</description>

Diff for: src/main/java/org/lowcoder/plugin/api/EndpointExtension.java

+2-7
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,7 @@
3434
Method method() default Method.GET;
3535

3636
/**
37-
* @return True if this endpoint should be secured
37+
* @return Endpoint will be secured by this SPeL expression. Empty expression means not secured.
3838
*/
39-
boolean authenticated() default false;
40-
41-
/**
42-
* @return Security SPeL expression (in case authenticated is set to true)
43-
*/
44-
String expression() default "";
39+
String authorize() default "";
4540
}

0 commit comments

Comments
 (0)