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

pom.xml

Lines changed: 1 addition & 1 deletion
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>

src/main/java/org/lowcoder/plugin/api/EndpointExtension.java

Lines changed: 2 additions & 7 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy