Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
caosdb-server
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
caosdb
Software
caosdb-server
Commits
943593f6
Verified
Commit
943593f6
authored
4 years ago
by
Timm Fitschen
Browse files
Options
Downloads
Patches
Plain Diff
FIX: scripting purpose
parent
218584dc
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/main/java/caosdb/server/resource/ScriptingResource.java
+1
-1
1 addition, 1 deletion
src/main/java/caosdb/server/resource/ScriptingResource.java
src/main/java/caosdb/server/scripting/ScriptingPermissions.java
+1
-1
1 addition, 1 deletion
...in/java/caosdb/server/scripting/ScriptingPermissions.java
with
2 additions
and
2 deletions
src/main/java/caosdb/server/resource/ScriptingResource.java
+
1
−
1
View file @
943593f6
...
...
@@ -213,7 +213,7 @@ public class ScriptingResource extends AbstractCaosDBServerResource {
* the call is not configured to be called by everyone, a SessionToken is returned instead.
*/
public
Object
generateAuthToken
(
String
call
)
{
String
purpose
=
ScriptingPermissions
.
PERMISSION_EXECUTION
(
call
)
;
String
purpose
=
"SCRIPTING:EXECUTE:"
+
call
;
Object
authtoken
=
OneTimeAuthenticationToken
.
generateForPurpose
(
purpose
,
getUser
());
if
(
authtoken
!=
null
||
isAnonymous
())
{
return
authtoken
;
...
...
This diff is collapsed.
Click to expand it.
src/main/java/caosdb/server/scripting/ScriptingPermissions.java
+
1
−
1
View file @
943593f6
...
...
@@ -3,7 +3,7 @@ package caosdb.server.scripting;
public
class
ScriptingPermissions
{
public
static
final
String
PERMISSION_EXECUTION
(
final
String
call
)
{
StringBuilder
ret
=
new
StringBuilder
(
1
0
+
call
.
length
());
StringBuilder
ret
=
new
StringBuilder
(
1
8
+
call
.
length
());
ret
.
append
(
"SCRIPTING:EXECUTE:"
);
ret
.
append
(
call
.
replace
(
"/"
,
":"
));
return
ret
.
toString
();
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment