@@ -32,7 +32,7 @@ class _OAuthBackend(BackendModule):
32
32
See satosa.backends.oauth.FacebookBackend.
33
33
"""
34
34
35
- def __init__ (self , outgoing , internal_attributes , config , base_url , name , external_type , user_id_attr ):
35
+ def __init__ (self , outgoing , logout , internal_attributes , config , base_url , name , external_type , user_id_attr ):
36
36
"""
37
37
:param outgoing: Callback should be called by the module after the authorization in the
38
38
backend is done.
@@ -52,7 +52,7 @@ def __init__(self, outgoing, internal_attributes, config, base_url, name, extern
52
52
:type name: str
53
53
:type external_type: str
54
54
"""
55
- super ().__init__ (outgoing , internal_attributes , base_url , name )
55
+ super ().__init__ (outgoing , logout , internal_attributes , base_url , name )
56
56
self .config = config
57
57
self .redirect_url = "%s/%s" % (self .config ["base_url" ], self .config ["authz_page" ])
58
58
self .external_type = external_type
@@ -190,11 +190,13 @@ class FacebookBackend(_OAuthBackend):
190
190
"""
191
191
DEFAULT_GRAPH_ENDPOINT = "https://graph.facebook.com/v2.5/me"
192
192
193
- def __init__ (self , outgoing , internal_attributes , config , base_url , name ):
193
+ def __init__ (self , outgoing , logout , internal_attributes , config , base_url , name ):
194
194
"""
195
195
Constructor.
196
196
:param outgoing: Callback should be called by the module after the authorization in the
197
197
backend is done.
198
+ :param logout: Callback should be called by the module after the logout in the backend is
199
+ done.
198
200
:param internal_attributes: Mapping dictionary between SATOSA internal attribute names and
199
201
the names returned by underlying IdP's/OP's as well as what attributes the calling SP's and
200
202
RP's expects namevice.
@@ -204,14 +206,16 @@ def __init__(self, outgoing, internal_attributes, config, base_url, name):
204
206
205
207
:type outgoing:
206
208
(satosa.context.Context, satosa.internal.InternalData) -> satosa.response.Response
209
+ :type logout:
210
+ (satosa.context.Context, satosa.internal.InternalData) -> satosa.response.Response
207
211
:type internal_attributes: dict[string, dict[str, str | list[str]]]
208
212
:type config: dict[str, dict[str, str] | list[str] | str]
209
213
:type base_url: str
210
214
:type name: str
211
215
"""
212
216
config .setdefault ("response_type" , "code" )
213
217
config ["verify_accesstoken_state" ] = False
214
- super ().__init__ (outgoing , internal_attributes , config , base_url , name , "facebook" , "id" )
218
+ super ().__init__ (outgoing , logout , internal_attributes , config , base_url , name , "facebook" , "id" )
215
219
216
220
def get_request_args (self , get_state = stateID ):
217
221
request_args = super ().get_request_args (get_state = get_state )
0 commit comments