diff --git a/init.sh b/init.sh
index f41e11bb128f137144e8103fc5261607713bdc23..01be44491931930eb7b9c575d7d9fd175c8a41aa 100755
--- a/init.sh
+++ b/init.sh
@@ -13,7 +13,7 @@ echo "user_id = $3" >> $HOME/.maap/auth.ini
 touch $HOME/.maap/maap.ini
 echo "[maap]" > $HOME/.maap/maap.ini
 echo "copa_backend_url = https://gravitee-gateway.${MAAP_ENV_TYPE,,}.esa-maap.org/" >> $HOME/.maap/maap.ini
-echo "url_token = https://iam.${MAAP_ENV_TYPE,,}.esa-maap.org/oxauth/restv1/token" >> $HOME/.maap/maap.ini
+echo "url_token = https://auth.${MAAP_ENV_TYPE,,}.esa-maap.org/${$REALM_NAME}/maap/protocol/openid-connect/token" >> $HOME/.maap/maap.ini
 echo "client_id = $CLIENT_ID"  >> $HOME/.maap/maap.ini
 echo "url_gravitee_s3 = https://gravitee-gateway.${MAAP_ENV_TYPE,,}.esa-maap.org/s3/" >> $HOME/.maap/maap.ini
 
diff --git a/scalability-s2-jupyter/Notebook_Classification_S2.ipynb b/scalability-s2-jupyter/Notebook_Classification_S2.ipynb
index 3062cb757ca3804388f7a80bf81e29e4693d5c8c..a1182ac8afce49a92d18e4d614b6eaeee5222861 100644
--- a/scalability-s2-jupyter/Notebook_Classification_S2.ipynb
+++ b/scalability-s2-jupyter/Notebook_Classification_S2.ipynb
@@ -73,7 +73,7 @@
    "outputs": [],
    "source": [
     "#retrieve a token\n",
-    "response = requests.post(url_token, data={'client_id': CLIENT_ID, 'username': email, 'password': password, \"grant_type\": \"password\", \"scope\": \"openid+profile\"})\n",
+    "response = requests.post(url_token, data={'client_id': CLIENT_ID, 'username': email, 'password': password, \"grant_type\": \"password\", \"scope\": \"profile\"})\n",
     "#Convert the string to json to fecth access_token\n",
     "data = json.loads(response.text)\n",
     "token = data['access_token']\n",
diff --git a/wps_notebook/Resample.ipynb b/wps_notebook/Resample.ipynb
index e112b3b95e6d92dccc0631338c854dbc0dd3263c..5b912f6c379734076a6fb839a20ea10f503f446b 100644
--- a/wps_notebook/Resample.ipynb
+++ b/wps_notebook/Resample.ipynb
@@ -85,7 +85,7 @@
    "metadata": {},
    "outputs": [],
    "source": [
-    "response = requests.post(url_token, data={'client_id': CLIENT_ID, 'username': email, 'password': password, \"grant_type\": \"password\", \"scope\": \"openid+profile\"})\n",
+    "response = requests.post(url_token, data=data={'client_id': CLIENT_ID, 'username': email, 'password': password, \"grant_type\": \"password\", \"scope\": \"profile\"})\n",
     "data = json.loads(response.text)\n",
     "print(data)\n",
     "oauth_token = data['access_token']"
diff --git a/wps_notebook/Scalability_Demonstration.ipynb b/wps_notebook/Scalability_Demonstration.ipynb
index bfae1519b04e5d2dc1cd2cfd773625cfe6198997..02621de8d2906226f4e6baabfa0fd873eaca1744 100644
--- a/wps_notebook/Scalability_Demonstration.ipynb
+++ b/wps_notebook/Scalability_Demonstration.ipynb
@@ -56,7 +56,7 @@
    "metadata": {},
    "outputs": [],
    "source": [
-    "response = requests.post(url_token, data={'client_id': CLIENT_ID, 'username': email, 'password': password, \"grant_type\": \"password\", \"scope\": \"openid+profile\"})\n",
+    "response = requests.post(url_token, data={'client_id': CLIENT_ID, 'username': email, 'password': password, \"grant_type\": \"password\", \"scope\": \"profile\"})\n",
     "data = json.loads(response.text)\n",
     "print(data)\n",
     "oauth_token = data['access_token']"
diff --git a/wps_notebook/Scalability_aksk_biopal_fh.ipynb b/wps_notebook/Scalability_aksk_biopal_fh.ipynb
index a8b690f7dcd70bd3c88188dcc0c1e5d504cbe635..fb67ca2a892011d1db984b9129eef8a08f6d3da5 100644
--- a/wps_notebook/Scalability_aksk_biopal_fh.ipynb
+++ b/wps_notebook/Scalability_aksk_biopal_fh.ipynb
@@ -56,7 +56,7 @@
    "metadata": {},
    "outputs": [],
    "source": [
-    "response = requests.post(url_token, data={'client_id': CLIENT_ID, 'username': email, 'password': password, \"grant_type\": \"password\", \"scope\": \"openid+profile\"})\n",
+    "response = requests.post(url_token, data={'client_id': CLIENT_ID, 'username': email, 'password': password, \"grant_type\": \"password\", \"scope\": \"profile\"})\n",
     "data = json.loads(response.text)\n",
     "print(data)\n",
     "oauth_token = data['access_token']"