You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
thanks for #1042 contribute 👍 , which provide the @authaction to solve the privilege of method ; but when the http params path through http body , the com.alibaba.csp.sentinel.dashboard.auth.AuthorizationInterceptor current is not ok to check auth correctly.
Type: bug report
Describe what happened
I created my own AuthService , and extend auth mehod as my own demand , it works . 😄 but when the http method is post ,put , params path through http body , it not works . such an /v1/flow/rule , /paramFlow/rule and so on.
Describe what you expected to happen
check auth correctly .
How to reproduce it (as minimally and precisely as possible)
change com.alibaba.csp.sentinel.dashboard.auth.SimpleWebAuthServiceImpl.SimpleWebAuthUserImpl#authTarget code
. add the below code
//target is the app name , this method to check the app has the PrivilegeType by your own demand.//when the target is null , return false to deny if( null == target){
returnfalse;
}
start or debug DashboardApplication ;
find one resource and add a rule ; which method is /v1/flow/rule . the result is "Permission denied" .
Tell us your environment
jdk 1.8 ,the master branch , the release-1.7 branch is the same result .
Anything else we need to know?
none .
The text was updated successfully, but these errors were encountered:
Issue Description
thanks for #1042 contribute 👍 , which provide the @authaction to solve the privilege of method ; but when the http params path through http body , the com.alibaba.csp.sentinel.dashboard.auth.AuthorizationInterceptor current is not ok to check auth correctly.
Type: bug report
Describe what happened
I created my own AuthService , and extend auth mehod as my own demand , it works . 😄 but when the http method is post ,put , params path through http body , it not works . such an /v1/flow/rule , /paramFlow/rule and so on.
Describe what you expected to happen
check auth correctly .
How to reproduce it (as minimally and precisely as possible)
. add the below code
Tell us your environment
jdk 1.8 ,the master branch , the release-1.7 branch is the same result .
Anything else we need to know?
none .
The text was updated successfully, but these errors were encountered: