aboutsummaryrefslogtreecommitdiffstats
path: root/development
diff options
context:
space:
mode:
authorFiete Ostkamp <Fiete.Ostkamp@telekom.de>2024-04-11 13:57:10 +0200
committerFiete Ostkamp <Fiete.Ostkamp@telekom.de>2024-04-11 13:57:10 +0200
commitdd5bbdc4704b91be74cc57be584efd9db99ee5c0 (patch)
tree8685d75472620769ddd43c3d066477287960b47b /development
parent0bf11185dcf93394c600972a83dbe69f9014e521 (diff)
Remove hardcoded /auth from the keycloak urls in bff
- it should be possible not to configure /auth in the Keycloak url since newer versions do not use it Issue-ID: PORTALNG-85 Change-Id: I288c8b954db185ed22793db0107d14e314d17c26 Signed-off-by: Fiete Ostkamp <Fiete.Ostkamp@telekom.de>
Diffstat (limited to 'development')
-rw-r--r--development/config/onap-realm.json2
-rw-r--r--development/requests-code.http4
-rw-r--r--development/requests-idea.http4
3 files changed, 5 insertions, 5 deletions
diff --git a/development/config/onap-realm.json b/development/config/onap-realm.json
index fab464f..387e423 100644
--- a/development/config/onap-realm.json
+++ b/development/config/onap-realm.json
@@ -223,6 +223,6 @@
}
],
"attributes": {
- "frontendUrl": "http://localhost:8080/auth/"
+ "frontendUrl": "http://localhost:8080/"
}
}
diff --git a/development/requests-code.http b/development/requests-code.http
index cec50e9..607428c 100644
--- a/development/requests-code.http
+++ b/development/requests-code.http
@@ -3,7 +3,7 @@
# @name login
@access_token = {{login.response.body.access_token}}
@id_token = {{login.response.body.id_token}}
-POST http://localhost:8080/auth/realms/ONAP/protocol/openid-connect/token
+POST http://localhost:8080/realms/ONAP/protocol/openid-connect/token
Content-Type: application/x-www-form-urlencoded
Authorization: Basic admin:password
@@ -13,7 +13,7 @@ grant_type=password&scope=openid&client_id=portal-app&username=onap-admin&passwo
# @name userinfo
@user_id = {{userinfo.response.body.sub}}
@user_name = {{userinfo.response.body.preferred_username}}
-GET http://localhost:8080/auth/realms/ONAP/protocol/openid-connect/userinfo
+GET http://localhost:8080/realms/ONAP/protocol/openid-connect/userinfo
Authorization: Bearer {{access_token}}
X-Auth-Identity: Bearer {{id_token}}
diff --git a/development/requests-idea.http b/development/requests-idea.http
index 780fbe8..66284cd 100644
--- a/development/requests-idea.http
+++ b/development/requests-idea.http
@@ -1,5 +1,5 @@
# To be used with IntelliJ IDEA
-POST http://localhost:8080/auth/realms/ONAP/protocol/openid-connect/token
+POST http://localhost:8080/realms/ONAP/protocol/openid-connect/token
Content-Type: application/x-www-form-urlencoded
client_id=portal-app&client_secret=&scope=openid&grant_type=password&username=onap-admin&password=password
@@ -10,7 +10,7 @@ client_id=portal-app&client_secret=&scope=openid&grant_type=password&username=on
###
-GET http://localhost:8080/auth/realms/ONAP/protocol/openid-connect/userinfo
+GET http://localhost:8080/realms/ONAP/protocol/openid-connect/userinfo
Authorization: Bearer {{access_token}}
X-Auth-Identity: Bearer {{id_token}}