@@ -32,7 +32,7 @@ class _OAuthBackend(BackendModule):
3232 See satosa.backends.oauth.FacebookBackend.
3333 """
3434
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 ):
3636 """
3737 :param outgoing: Callback should be called by the module after the authorization in the
3838 backend is done.
@@ -52,7 +52,7 @@ def __init__(self, outgoing, internal_attributes, config, base_url, name, extern
5252 :type name: str
5353 :type external_type: str
5454 """
55- super ().__init__ (outgoing , internal_attributes , base_url , name )
55+ super ().__init__ (outgoing , logout , internal_attributes , base_url , name )
5656 self .config = config
5757 self .redirect_url = "%s/%s" % (self .config ["base_url" ], self .config ["authz_page" ])
5858 self .external_type = external_type
@@ -190,11 +190,13 @@ class FacebookBackend(_OAuthBackend):
190190 """
191191 DEFAULT_GRAPH_ENDPOINT = "https://graph.facebook.com/v2.5/me"
192192
193- def __init__ (self , outgoing , internal_attributes , config , base_url , name ):
193+ def __init__ (self , outgoing , logout , internal_attributes , config , base_url , name ):
194194 """
195195 Constructor.
196196 :param outgoing: Callback should be called by the module after the authorization in the
197197 backend is done.
198+ :param logout: Callback should be called by the module after the logout in the backend is
199+ done.
198200 :param internal_attributes: Mapping dictionary between SATOSA internal attribute names and
199201 the names returned by underlying IdP's/OP's as well as what attributes the calling SP's and
200202 RP's expects namevice.
@@ -204,14 +206,16 @@ def __init__(self, outgoing, internal_attributes, config, base_url, name):
204206
205207 :type outgoing:
206208 (satosa.context.Context, satosa.internal.InternalData) -> satosa.response.Response
209+ :type logout:
210+ (satosa.context.Context, satosa.internal.InternalData) -> satosa.response.Response
207211 :type internal_attributes: dict[string, dict[str, str | list[str]]]
208212 :type config: dict[str, dict[str, str] | list[str] | str]
209213 :type base_url: str
210214 :type name: str
211215 """
212216 config .setdefault ("response_type" , "code" )
213217 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" )
215219
216220 def get_request_args (self , get_state = stateID ):
217221 request_args = super ().get_request_args (get_state = get_state )
0 commit comments