File tree Expand file tree Collapse file tree 3 files changed +8
-3
lines changed Expand file tree Collapse file tree 3 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ def mock_magic_link_profile(self):
29
29
idp_id = "" ,
30
30
first_name = None ,
31
31
last_name = None ,
32
- profile = None ,
32
+ role = None ,
33
33
groups = None ,
34
34
raw_attributes = {},
35
35
).dict ()
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ class MockProfile(Profile):
6
6
def __init__ (self , id : str ):
7
7
super ().__init__ (
8
8
object = "profile" ,
9
- id = "prof_01DWAS7ZQWM70PV93BFV1V78QV" ,
9
+ id = id or "prof_01DWAS7ZQWM70PV93BFV1V78QV" ,
10
10
email = "demo@workos-okta.com" ,
11
11
first_name = "WorkOS" ,
12
12
last_name = "Demo" ,
@@ -16,10 +16,14 @@ def __init__(self, id: str):
16
16
connection_id = "conn_01EMH8WAK20T42N2NBMNBCYHAG" ,
17
17
connection_type = "OktaSAML" ,
18
18
idp_id = "00u1klkowm8EGah2H357" ,
19
+ custom_attributes = {
20
+ "license" : "professional" ,
21
+ },
19
22
raw_attributes = {
20
23
"email" : "demo@workos-okta.com" ,
21
24
"first_name" : "WorkOS" ,
22
25
"last_name" : "Demo" ,
23
26
"groups" : ["Admins" , "Developers" ],
27
+ "license" : "professional" ,
24
28
},
25
29
)
Original file line number Diff line number Diff line change @@ -23,7 +23,8 @@ class Profile(WorkOSModel):
23
23
idp_id : str
24
24
role : Optional [ProfileRole ] = None
25
25
groups : Optional [Sequence [str ]] = None
26
- raw_attributes : Mapping [str , Any ]
26
+ custom_attributes : Optional [Mapping [str , Any ]] = None
27
+ raw_attributes : Optional [Mapping [str , Any ]] = None
27
28
28
29
29
30
class ProfileAndToken (WorkOSModel ):
You can’t perform that action at this time.
0 commit comments