Skip to content

Commit

Permalink
Merge branch 'master' of github.com:conwetlab/ckanext-oauth2
Browse files Browse the repository at this point in the history
  • Loading branch information
Aitor Magán committed Feb 9, 2015
2 parents bdb4dee + 732a113 commit 93c51d3
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
8 changes: 4 additions & 4 deletions ckanext/oauth2/tests/test_selenium.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def test_basic_login(self):
self.assertEqual(self.base_url + "about", driver.current_url)
driver.find_element_by_css_selector("a[title=\"Edit settings\"]").click()
time.sleep(3) # Wait the OAuth2 Server to return the page
assert driver.current_url.startswith("https://account.lab.fi-ware.org/settings")
assert driver.current_url.startswith("https://account.lab.fiware.org/settings")

def test_basic_login_different_referer(self):
driver = self.driver
Expand Down Expand Up @@ -100,11 +100,11 @@ def test_register_btn(self):
driver = self.driver
driver.get(self.base_url)
driver.find_element_by_link_text("Register").click()
self.assertEqual("https://account.lab.fi-ware.org/users/sign_up", driver.current_url)
self.assertEqual("https://account.lab.fiware.org/users/sign_up", driver.current_url)

@parameterized.expand([
("user/register", "https://account.lab.fi-ware.org/users/sign_up"),
("user/reset", "https://account.lab.fi-ware.org/users/password/new")
("user/register", "https://account.lab.fiware.org/users/sign_up"),
("user/reset", "https://account.lab.fiware.org/users/password/new")
])
def test_register(self, action, expected_url):
driver = self.driver
Expand Down
14 changes: 7 additions & 7 deletions test-fiware.ini
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,12 @@ ckan.plugins = oauth2

## OAuth2 configuration
ckan.oauth2.logout_url = /user/logged_out
ckan.oauth2.register_url = https://account.lab.fi-ware.org/users/sign_up
ckan.oauth2.reset_url = https://account.lab.fi-ware.org/users/password/new
ckan.oauth2.edit_url = https://account.lab.fi-ware.org/settings
ckan.oauth2.authorization_endpoint = https://account.lab.fi-ware.org/authorize
ckan.oauth2.token_endpoint = https://account.lab.fi-ware.org/token
ckan.oauth2.profile_api_url = https://account.lab.fi-ware.org/user
ckan.oauth2.register_url = https://account.lab.fiware.org/users/sign_up
ckan.oauth2.reset_url = https://account.lab.fiware.org/users/password/new
ckan.oauth2.edit_url = https://account.lab.fiware.org/settings
ckan.oauth2.authorization_endpoint = https://account.lab.fiware.org/authorize
ckan.oauth2.token_endpoint = https://account.lab.fiware.org/token
ckan.oauth2.profile_api_url = https://account.lab.fiware.org/user
ckan.oauth2.client_id = 716
ckan.oauth2.client_secret = c70657f6667dcae34c21edb7fc0da36fb25b486d56ec1a5c4fa3c1a642312b7dbf208d83f223c8f5223652c4bb94131504fc3cca0aeb9a9b2d75127e478ceffa
ckan.oauth2.scope =
Expand Down Expand Up @@ -92,4 +92,4 @@ level = NOTSET
formatter = generic

[formatter_generic]
format = %(asctime)s %(levelname)-5.5s [%(name)s] %(message)s
format = %(asctime)s %(levelname)-5.5s [%(name)s] %(message)s

0 comments on commit 93c51d3

Please sign in to comment.