Skip to content

Commit a81ce15

Browse files
committed
minor
1 parent c1f2d05 commit a81ce15

File tree

1 file changed

+32
-32
lines changed
  • services/static-webserver/client/source/class/osparc/auth

1 file changed

+32
-32
lines changed

services/static-webserver/client/source/class/osparc/auth/Data.js

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,38 @@ qx.Class.define("osparc.auth.Data", {
2525
type: "singleton",
2626

2727
properties: {
28+
/**
29+
* Basic authentification with a token
30+
*/
31+
auth: {
32+
init: null,
33+
nullable: true,
34+
check: "osparc.io.request.authentication.Token",
35+
apply: "__applyAuth"
36+
},
37+
38+
role: {
39+
check: ["anonymous", "guest", "user", "tester", "product_owner", "admin"],
40+
init: null,
41+
nullable: false,
42+
event: "changeRole",
43+
apply: "__applyRole"
44+
},
45+
46+
guest: {
47+
check: "Boolean",
48+
init: true,
49+
nullable: false,
50+
event: "changeGuest"
51+
},
52+
53+
loggedIn: {
54+
check: "Boolean",
55+
nullable: false,
56+
init: false,
57+
event: "changeLoggedIn",
58+
},
59+
2860
/**
2961
* User Id
3062
*/
@@ -43,16 +75,6 @@ qx.Class.define("osparc.auth.Data", {
4375
check: "Number"
4476
},
4577

46-
/**
47-
* Basic authentification with a token
48-
*/
49-
auth: {
50-
init: null,
51-
nullable: true,
52-
check: "osparc.io.request.authentication.Token",
53-
apply: "__applyAuth"
54-
},
55-
5678
username: {
5779
check: "String",
5880
init: null,
@@ -83,34 +105,12 @@ qx.Class.define("osparc.auth.Data", {
83105
event: "changeLastName"
84106
},
85107

86-
role: {
87-
check: ["anonymous", "guest", "user", "tester", "product_owner", "admin"],
88-
init: null,
89-
nullable: false,
90-
event: "changeRole",
91-
apply: "__applyRole"
92-
},
93-
94-
guest: {
95-
check: "Boolean",
96-
init: true,
97-
nullable: false,
98-
event: "changeGuest"
99-
},
100-
101108
expirationDate: {
102109
init: null,
103110
nullable: true,
104111
check: "Date",
105112
event: "changeExpirationDate"
106113
},
107-
108-
loggedIn: {
109-
check: "Boolean",
110-
nullable: false,
111-
init: false,
112-
event: "changeLoggedIn",
113-
}
114114
},
115115

116116
members: {

0 commit comments

Comments
 (0)