Esempio n. 1
0
 def test_logout_url_options_uses_options_over_api(self):
     custom_api = Api(mode="sandbox",
                      client_id='custom_client_id',
                      client_secret='custom_client_secret',
                      openid_endpoint='https://def.abc',
                      openid_redirect_uri='http://abc.def/')
     url = logout_url({'id_token': '1234'}, api=custom_api)
     assert_regex_matches(self, url, 'id_token=1234')
Esempio n. 2
0
 def test_logout_url_with_api(self):
     custom_api = Api(mode="sandbox",
                      client_id='custom_client_id',
                      client_secret='custom_client_secret',
                      openid_endpoint='https://def.abc',
                      openid_redirect_uri='http://abc.def/')
     url = logout_url(api=custom_api)
     assert_regex_matches(self, url, 'logout=true')
     assert_regex_matches(self, url, 'redirect_uri=http%3A%2F%2Fabc.def%2F')
 def test_logout_url_options(self):
   url = logout_url({'id_token': '1234'})
   assert_regex_matches(self, url, 'id_token=1234')
 def test_logout_url(self):
   url = logout_url()
   assert_regex_matches(self, url, 'logout=true')
Esempio n. 5
0
 def test_logout_url_options(self):
     url = logout_url({'id_token': '1234'})
     assert_regex_matches(self, url, 'id_token=1234')
Esempio n. 6
0
 def test_logout_url(self):
     url = logout_url()
     assert_regex_matches(self, url, 'logout=true')