Skip to content

Commit

Permalink
switch from /info.json to /.well-known/vpn-user-portal
Browse files Browse the repository at this point in the history
- 3.x servers will not support /info.json anymore
- all existing servers (except one) already support this
  endpoint
  • Loading branch information
François Kooman authored and gijzelaerr committed Dec 21, 2021
1 parent 1e2e3bf commit ca814c3
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion doc/usage.rst
Expand Up @@ -32,5 +32,5 @@ For example, to refresh your configured configuration and certicates one can run
.. code-block:: bash
$ eduvpn-cli refresh
INFO:eduvpn.remote:Requesting https://demo.eduvpn.nl/info.json
INFO:eduvpn.remote:Requesting https://demo.eduvpn.nl/.well-known/vpn-user-portal
INFO:eduvpn.storage:updating token for https://demo.eduvpn.nl/
2 changes: 1 addition & 1 deletion eduvpn/remote.py
Expand Up @@ -81,7 +81,7 @@ def list_servers(uri: str) -> List[Dict[str, Any]]:
def get_full_info(base_uri: str) -> Dict[str, Any]:
if not base_uri.endswith('/'):
base_uri += '/'
uri = base_uri + 'info.json'
uri = base_uri + '.well-known/vpn-user-portal'
return request(uri)['api']['http://eduvpn.org/api#2']


Expand Down
2 changes: 1 addition & 1 deletion notebooks/demo_enroll.ipynb
Expand Up @@ -1768,7 +1768,7 @@
"metadata": {},
"outputs": [],
"source": [
"info_url = info_base_url + 'info.json'\n",
"info_url = info_base_url + '.well-known/vpn-user-portal'\n",
"info = requests.get(info_url).json()['api']['http://eduvpn.org/api#2']"
]
},
Expand Down
2 changes: 1 addition & 1 deletion notebooks/surfnet_nl_enroll.ipynb
Expand Up @@ -939,7 +939,7 @@
"metadata": {},
"outputs": [],
"source": [
"info_url = secure_internet_url + 'info.json'\n",
"info_url = secure_internet_url + '.well-known/vpn-user-portal'\n",
"info = requests.get(info_url).json()['api']['http://eduvpn.org/api#2']"
]
},
Expand Down

0 comments on commit ca814c3

Please sign in to comment.