@@ -30,11 +30,40 @@ class ApplicationSettingsApplication(
30
30
31
31
def __init__ (self , config = None ):
32
32
super ().__init__ (config )
33
- pass
33
+ if config :
34
+ self .acs_url = config ["acsUrl" ]\
35
+ if "acsUrl" in config else None
36
+ self .button_field = config ["buttonField" ]\
37
+ if "buttonField" in config else None
38
+ self .login_url_regex = config ["loginUrlRegex" ]\
39
+ if "loginUrlRegex" in config else None
40
+ self .org_name = config ["orgName" ]\
41
+ if "orgName" in config else None
42
+ self .password_field = config ["passwordField" ]\
43
+ if "passwordField" in config else None
44
+ self .url = config ["url" ]\
45
+ if "url" in config else None
46
+ self .username_field = config ["usernameField" ]\
47
+ if "usernameField" in config else None
48
+ else :
49
+ self .acs_url = None
50
+ self .button_field = None
51
+ self .login_url_regex = None
52
+ self .org_name = None
53
+ self .password_field = None
54
+ self .url = None
55
+ self .username_field = None
34
56
35
57
def request_format (self ):
36
58
parent_req_format = super ().request_format ()
37
59
current_obj_format = {
60
+ "acsUrl" : self .acs_url ,
61
+ "buttonField" : self .button_field ,
62
+ "loginUrlRegex" : self .login_url_regex ,
63
+ "orgName" : self .org_name ,
64
+ "passwordField" : self .password_field ,
65
+ "url" : self .url ,
66
+ "usernameField" : self .username_field
38
67
}
39
68
parent_req_format .update (current_obj_format )
40
69
return parent_req_format
0 commit comments