hello-world-service/documentation/postman/Smartgears4 helloword.postm...

1458 lines
34 KiB
JSON
Raw Normal View History

2024-02-23 19:01:55 +01:00
{
"info": {
2024-05-22 15:47:21 +02:00
"_postman_id": "442a8fd2-cf69-4f21-af2d-698028f25ce9",
"name": "Helloword SM4",
2024-02-23 19:01:55 +01:00
"description": "An example collection that can be used for communicating with gcube services\n\nget TOKEN and at UMA_TOKEN from url: [https://next.dev.d4science.org/group/gcube/home](https://next.dev.d4science.org/group/gcube/home)\n\nupdate the collection's variables gcube_token and uma_token",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
"_exporter_id": "32856827"
},
"item": [
{
2024-05-22 15:47:21 +02:00
"name": "LOGIN",
"item": [
{
"name": "clear context Copy",
"event": [
2024-02-23 19:01:55 +01:00
{
2024-05-22 15:47:21 +02:00
"listen": "prerequest",
"script": {
"exec": [
"console.log(\"executing clear script\");",
"",
"variables = [",
" 'token',",
" 'access_token',",
" 'refresh_token',",
"",
" 'uma_token',",
" 'uma_refresh',",
"",
" 'profile_token',",
" 'gcube_token',",
" 'oidc_access_token',",
" 'oidc_refresh_token',",
" 'id_token',",
"",
" 'clientId',",
"",
" 'current_username',",
" 'current_password',",
" 'current_context',",
" 'current_url-encoded-context',",
" 'current_iam-url',",
" 'current_client-id',",
" 'current_uma-token',",
" 'current_access-token',",
"",
" 'oidc_token',",
" 'oidc_access_token',",
" 'oidc_refresh_token',",
" 'uma_token',",
" 'exchanged_token'",
"",
"]",
"",
"for (var v of variables) {",
" pm.environment.unset(v);",
" pm.globals.unset(v);",
"}",
"",
" ",
"",
"",
" ",
""
],
"type": "text/javascript",
"packages": {}
}
2024-02-23 19:01:55 +01:00
}
2024-05-22 15:47:21 +02:00
],
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "//",
"path": [
"",
""
]
2024-02-23 19:01:55 +01:00
}
2024-05-22 15:47:21 +02:00
},
"response": []
2024-02-23 19:01:55 +01:00
},
2024-05-22 15:47:21 +02:00
{
"name": "[SAT] Obtain OIDC token from a service account Copy",
"event": [
{
"listen": "test",
"script": {
"exec": [
"var jsonData = JSON.parse(responseBody);",
"",
"// postman.setEnvironmentVariable(\"refresh_token\", jsonData.refresh_token);",
"// postman.setEnvironmentVariable(\"id_token\", jsonData.id_token);",
"",
"postman.setEnvironmentVariable(\"oidc_access_token\", jsonData.access_token);",
"",
"postman.setEnvironmentVariable(\"access_token\", jsonData.access_token);",
"postman.setEnvironmentVariable(\"token\", jsonData.access_token);",
""
],
"type": "text/javascript",
"packages": {}
}
}
2024-02-23 19:01:55 +01:00
],
2024-05-22 15:47:21 +02:00
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/x-www-form-urlencoded",
"name": "Content-Type",
"type": "text"
}
],
"body": {
"mode": "urlencoded",
"urlencoded": [
{
"key": "client_id",
"value": "{{service_client_id}}",
"type": "text"
},
{
"key": "client_secret",
"value": "{{service_client_secret}}",
"type": "text"
},
{
"key": "grant_type",
"value": "client_credentials",
"type": "text"
}
]
},
"url": {
"raw": "{{keycloak_url}}/realms/{{realm}}/protocol/openid-connect/token",
"host": [
"{{keycloak_url}}"
],
"path": [
"realms",
"{{realm}}",
"protocol",
"openid-connect",
"token"
]
},
"description": "Obtain SAT (service account token)"
},
"response": []
2024-02-23 19:01:55 +01:00
},
2024-05-22 15:47:21 +02:00
{
"name": "[SAT] Obtain alfredo-idm-service-dev OIDC token",
"event": [
2024-02-23 19:01:55 +01:00
{
2024-05-22 15:47:21 +02:00
"listen": "test",
"script": {
"exec": [
"var jsonData = JSON.parse(responseBody);",
"",
"// postman.setEnvironmentVariable(\"refresh_token\", jsonData.refresh_token);",
"// postman.setEnvironmentVariable(\"id_token\", jsonData.id_token);",
"",
"postman.setEnvironmentVariable(\"oidc_access_token\", jsonData.access_token);",
"",
"postman.setEnvironmentVariable(\"access_token\", jsonData.access_token);",
"postman.setEnvironmentVariable(\"token\", jsonData.access_token);",
""
],
"type": "text/javascript",
"packages": {}
}
2024-02-23 19:01:55 +01:00
}
2024-05-22 15:47:21 +02:00
],
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/x-www-form-urlencoded",
"name": "Content-Type",
"type": "text"
}
],
"body": {
"mode": "urlencoded",
"urlencoded": [
{
"key": "client_id",
"value": "alfredo-idm-service-dev",
"type": "text"
},
{
"key": "client_secret",
"value": "979bd3bc-5cc4-11ec-bf63-0242ac130002",
"type": "text"
},
{
"key": "grant_type",
"value": "client_credentials",
"type": "text"
}
]
},
"url": {
"raw": "{{keycloak_url}}/realms/{{realm}}/protocol/openid-connect/token",
"host": [
"{{keycloak_url}}"
],
"path": [
"realms",
"{{realm}}",
"protocol",
"openid-connect",
"token"
]
},
"description": "Obtain SAT (service account token)"
},
"response": []
},
{
"name": "[SAT] Obtain CONTEXT access token from a service account Copy",
"event": [
2024-02-23 19:01:55 +01:00
{
2024-05-22 15:47:21 +02:00
"listen": "test",
"script": {
"exec": [
"var jsonData = JSON.parse(responseBody);",
"",
"// postman.setEnvironmentVariable(\"refresh_token\", jsonData.refresh_token);",
"// postman.setEnvironmentVariable(\"id_token\", jsonData.id_token);",
"",
"postman.setEnvironmentVariable(\"oidc_access_token\", jsonData.access_token);",
"",
"postman.setEnvironmentVariable(\"access_token\", jsonData.access_token);",
"postman.setEnvironmentVariable(\"token\", jsonData.access_token);",
"",
""
],
"type": "text/javascript",
"packages": {}
}
2024-02-23 19:01:55 +01:00
}
],
2024-05-22 15:47:21 +02:00
"request": {
"auth": {
"type": "noauth"
},
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/x-www-form-urlencoded"
},
{
"key": "X-D4Science-Context",
"value": "{{encoded_context}}"
}
],
"body": {
"mode": "urlencoded",
"urlencoded": [
{
"key": "client_id",
"value": "{{service_client_id}}",
"type": "text"
},
{
"key": "client_secret",
"value": "{{service_client_secret}}",
"type": "text"
},
{
"key": "grant_type",
"value": "client_credentials",
"type": "text"
}
]
},
"url": {
"raw": "{{keycloak_url}}/realms/{{realm}}/protocol/openid-connect/token",
"host": [
"{{keycloak_url}}"
],
"path": [
"realms",
"{{realm}}",
"protocol",
"openid-connect",
"token"
]
},
"description": "Obtain SAT (service account token)"
},
"response": []
2024-02-23 19:01:55 +01:00
},
2024-05-22 15:47:21 +02:00
{
"name": "[UAT] Obtain id token for a user",
"event": [
{
"listen": "test",
"script": {
"exec": [
"var jsonData = JSON.parse(responseBody);",
"postman.setEnvironmentVariable(\"oidc_access_token\", jsonData.access_token);",
"postman.setEnvironmentVariable(\"oidc_refresh_token\", jsonData.refresh_token);",
"",
"postman.setEnvironmentVariable(\"access_token\", jsonData.access_token);",
"postman.setEnvironmentVariable(\"refresh_token\", jsonData.refresh_token);",
""
],
"type": "text/javascript",
"packages": {}
}
},
2024-02-23 19:01:55 +01:00
{
2024-05-22 15:47:21 +02:00
"listen": "prerequest",
"script": {
"exec": [
"function set_user_pass(){",
" var username = pm.variables.get('username');",
"",
" console.log('current username', pm.variables.get('username'));",
"",
" var pwd_key = 'password_' + username;",
" if (pm.variables.has('key_password')) {",
" pwd_key = pm.variables.get('key_password')",
" }",
"",
" if (pm.variables.has(pwd_key)) {",
" password = pm.variables.get(pwd_key);",
" } else {",
" throw new Error(\"missing password for username \" + username + \". Set a global password (type secret) with key \" + pwd_key);",
" }",
" pm.environment.set('current_password', password );",
" console.log('password', password, 'from', pwd_key );",
"",
" pm.environment.set('current_username', username);",
" pm.environment.set('current_password', password);",
"}",
"",
"set_user_pass();"
],
"type": "text/javascript",
"packages": {}
}
2024-02-23 19:01:55 +01:00
}
],
2024-05-22 15:47:21 +02:00
"request": {
"auth": {
"type": "noauth"
},
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/x-www-form-urlencoded",
"name": "Content-Type",
"type": "text"
}
],
"body": {
"mode": "urlencoded",
"urlencoded": [
{
"key": "username",
"value": "{{username}}",
"type": "text"
},
{
"key": "password",
"value": "{{password}}",
"type": "text"
},
{
"key": "grant_type",
"value": "password",
"type": "text"
},
{
"key": "client_id",
"value": "{{client-id-user}}",
"type": "text"
},
{
"key": "client_secret",
"value": "{{service_client_secret}}",
"type": "text"
}
]
},
"url": {
"raw": "{{keycloak_url}}/realms/{{realm}}/protocol/openid-connect/token",
"host": [
"{{keycloak_url}}"
],
"path": [
"realms",
"{{realm}}",
"protocol",
"openid-connect",
"token"
]
},
"description": "Obtain UAT = user access token from a user in realm"
},
"response": []
2024-02-23 19:01:55 +01:00
},
2024-05-22 15:47:21 +02:00
{
"name": "[UAT] Obtain CONTEXT id token for a user",
"event": [
{
"listen": "test",
"script": {
"exec": [
"var jsonData = JSON.parse(responseBody);",
"postman.setEnvironmentVariable(\"oidc_access_token\", jsonData.access_token);",
"postman.setEnvironmentVariable(\"oidc_refresh_token\", jsonData.refresh_token);",
"",
"postman.setEnvironmentVariable(\"uma_token\", jsonData.access_token);",
"",
"postman.setEnvironmentVariable(\"access_token\", jsonData.access_token);",
"postman.setEnvironmentVariable(\"refresh_token\", jsonData.refresh_token);",
""
],
"type": "text/javascript",
"packages": {}
}
},
{
"listen": "prerequest",
"script": {
"exec": [
"function set_user_pass(){",
" var username = pm.variables.get('username');",
"",
" console.log('current username', pm.variables.get('username'));",
"",
" var pwd_key = 'password_' + username;",
" if (pm.variables.has('key_password')) {",
" pwd_key = pm.variables.get('key_password')",
" }",
"",
" if (pm.variables.has(pwd_key)) {",
" password = pm.variables.get(pwd_key);",
" } else {",
" throw new Error(\"missing password for username \" + username + \". Set a global password (type secret) with key \" + pwd_key);",
" }",
" pm.environment.set('current_password', password );",
" console.log('password', password, 'from', pwd_key );",
"",
" pm.environment.set('current_username', username);",
" pm.environment.set('current_password', password);",
"}",
"",
"set_user_pass();"
],
"type": "text/javascript",
"packages": {}
}
}
2024-02-23 19:01:55 +01:00
],
2024-05-22 15:47:21 +02:00
"request": {
"auth": {
"type": "noauth"
},
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/x-www-form-urlencoded",
"name": "Content-Type",
"type": "text"
},
{
"key": "X-D4Science-Context",
"value": "{{encoded_context}}",
"type": "text"
}
],
"body": {
"mode": "urlencoded",
"urlencoded": [
{
"key": "client_id",
"value": "{{service_client_id}}",
"type": "text"
},
{
"key": "username",
"value": "{{username}}",
"type": "text"
},
{
"key": "password",
"value": "{{password}}",
"type": "text"
},
{
"key": "grant_type",
"value": "password",
"type": "text"
},
{
"key": "client_secret",
"value": "{{service_client_secret}}",
"type": "text"
}
]
},
"url": {
"raw": "{{keycloak_url}}/realms/{{realm}}/protocol/openid-connect/token",
"host": [
"{{keycloak_url}}"
],
"path": [
"realms",
"{{realm}}",
"protocol",
"openid-connect",
"token"
]
},
"description": "Obtain UAT = user access token from a user in realm"
},
"response": []
},
{
"name": "[UAT] Obtain Tesrt CONTEXT id token",
"event": [
{
"listen": "test",
"script": {
"exec": [
"var jsonData = JSON.parse(responseBody);",
"postman.setEnvironmentVariable(\"oidc_access_token\", jsonData.access_token);",
"postman.setEnvironmentVariable(\"oidc_refresh_token\", jsonData.refresh_token);",
"",
"postman.setEnvironmentVariable(\"uma_token\", jsonData.access_token);",
"",
"postman.setEnvironmentVariable(\"access_token\", jsonData.access_token);",
"postman.setEnvironmentVariable(\"refresh_token\", jsonData.refresh_token);",
""
],
"type": "text/javascript",
"packages": {}
}
},
{
"listen": "prerequest",
"script": {
"exec": [
"function set_user_pass(){",
" var username = pm.variables.get('username');",
"",
" console.log('current username', pm.variables.get('username'));",
"",
" var pwd_key = 'password_' + username;",
" if (pm.variables.has('key_password')) {",
" pwd_key = pm.variables.get('key_password')",
" }",
"",
" if (pm.variables.has(pwd_key)) {",
" password = pm.variables.get(pwd_key);",
" } else {",
" throw new Error(\"missing password for username \" + username + \". Set a global password (type secret) with key \" + pwd_key);",
" }",
" pm.environment.set('current_password', password );",
" console.log('password', password, 'from', pwd_key );",
"",
" pm.environment.set('current_username', username);",
" pm.environment.set('current_password', password);",
"}",
"",
"set_user_pass();"
],
"type": "text/javascript",
"packages": {}
}
}
2024-02-23 19:01:55 +01:00
],
2024-05-22 15:47:21 +02:00
"request": {
"auth": {
"type": "noauth"
},
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/x-www-form-urlencoded"
},
{
"key": "X-D4Science-Context",
"value": "{{encoded_context}}"
}
],
"body": {
"mode": "urlencoded",
"urlencoded": [
{
"key": "client_id",
"value": "{{service_client_id}}",
"type": "text"
},
{
"key": "username",
"value": "{{user_test}}",
"type": "text"
},
{
"key": "password",
"value": "{{pass_test}}",
"type": "text"
},
{
"key": "grant_type",
"value": "password",
"type": "text"
},
{
"key": "client_secret",
"value": "{{service_client_secret}}",
"type": "text"
}
]
},
"url": {
"raw": "{{keycloak_url}}/realms/{{realm}}/protocol/openid-connect/token",
"host": [
"{{keycloak_url}}"
],
"path": [
"realms",
"{{realm}}",
"protocol",
"openid-connect",
"token"
]
},
"description": "Obtain UAT = user access token from a user in realm"
},
"response": []
},
{
"name": "EXCHANGE oidc_access_token",
"event": [
2024-02-23 19:01:55 +01:00
{
2024-05-22 15:47:21 +02:00
"listen": "test",
"script": {
"exec": [
"var jsonData = JSON.parse(responseBody);",
"",
"postman.setEnvironmentVariable(\"access_token\", jsonData.access_token);",
"postman.setEnvironmentVariable(\"refresh_token\", jsonData.refresh_token);",
"",
"postman.setEnvironmentVariable(\"exchanged_token\", jsonData.access_token);",
""
],
"type": "text/javascript",
"packages": {}
}
},
{
"listen": "prerequest",
"script": {
"exec": [
""
],
"type": "text/javascript",
"packages": {}
}
2024-02-23 19:01:55 +01:00
}
2024-05-22 15:47:21 +02:00
],
"protocolProfileBehavior": {
"disabledSystemHeaders": {
"user-agent": true,
"accept": true,
"accept-encoding": true,
"connection": true
}
},
"request": {
"auth": {
"type": "noauth"
},
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/x-www-form-urlencoded",
"name": "Content-Type",
"type": "text",
"disabled": true
},
{
"key": "X-D4Science-Context",
"value": "{{encoded_context}}",
"type": "text"
}
],
"body": {
"mode": "urlencoded",
"urlencoded": [
{
"key": "subject_token",
"value": "{{oidc_access_token}}",
"type": "text"
},
{
"key": "client_id",
"value": "{{introspect_client}}",
"type": "text"
},
{
"key": "client_secret",
"value": "{{introspect_secret}}",
"type": "text"
},
{
"key": "grant_type",
"value": "urn:ietf:params:oauth:grant-type:token-exchange",
"type": "text"
},
{
"key": "subject_token_type",
"value": "urn:ietf:params:oauth:token-type:access_token",
"type": "text"
},
{
"key": "requested_token_type",
"value": "urn:ietf:params:oauth:token-type:access_token",
"type": "text"
}
]
},
"url": {
"raw": "{{keycloak_url}}/realms/{{realm}}/protocol/openid-connect/token",
"host": [
"{{keycloak_url}}"
],
"path": [
"realms",
"{{realm}}",
"protocol",
"openid-connect",
"token"
]
},
"description": "Obtain UAT = user access token from a user in realm"
},
"response": []
},
{
"name": "EXCHANGE oidc_access_token Copy",
"event": [
2024-02-23 19:01:55 +01:00
{
2024-05-22 15:47:21 +02:00
"listen": "test",
"script": {
"exec": [
"var jsonData = JSON.parse(responseBody);",
"",
"postman.setEnvironmentVariable(\"access_token\", jsonData.access_token);",
"postman.setEnvironmentVariable(\"refresh_token\", jsonData.refresh_token);",
"",
"postman.setEnvironmentVariable(\"exchanged_token\", jsonData.access_token);",
""
],
"type": "text/javascript",
"packages": {}
}
},
{
"listen": "prerequest",
"script": {
"exec": [
""
],
"type": "text/javascript",
"packages": {}
}
}
],
"protocolProfileBehavior": {
"disabledSystemHeaders": {
"user-agent": true,
"accept": true,
"accept-encoding": true,
"connection": true
2024-02-23 19:01:55 +01:00
}
2024-05-22 15:47:21 +02:00
},
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/x-www-form-urlencoded",
"name": "Content-Type",
"type": "text",
"disabled": true
},
{
"key": "X-D4Science-Context",
"value": "{{encoded_context}}",
"type": "text"
}
],
"body": {
"mode": "urlencoded",
"urlencoded": [
{
"key": "subject_token",
"value": "{{oidc_access_token}}",
"type": "text"
},
{
"key": "client_id",
"value": "{{introspect_client}}",
"type": "text"
},
{
"key": "client_secret",
"value": "{{introspect_secret}}",
"type": "text"
},
{
"key": "grant_type",
"value": "urn:ietf:params:oauth:grant-type:token-exchange",
"type": "text"
},
{
"key": "subject_token_type",
"value": "urn:ietf:params:oauth:token-type:access_token",
"type": "text"
},
{
"key": "requested_token_type",
"value": "urn:ietf:params:oauth:token-type:access_token",
"type": "text"
}
]
},
"url": {
"raw": "{{keycloak_url}}/realms/{{realm}}/protocol/openid-connect/token",
"host": [
"{{keycloak_url}}"
],
"path": [
"realms",
"{{realm}}",
"protocol",
"openid-connect",
"token"
]
},
"description": "Obtain UAT = user access token from a user in realm"
},
"response": []
2024-02-23 19:01:55 +01:00
},
2024-05-22 15:47:21 +02:00
{
"name": "refresh CONTEXT token Copy",
"event": [
{
"listen": "test",
"script": {
"exec": [
"var jsonData = JSON.parse(responseBody);",
"",
"postman.setEnvironmentVariable(\"access_token\", jsonData.access_token);",
"postman.setEnvironmentVariable(\"refresh_token\", jsonData.refresh_token);",
""
],
"type": "text/javascript",
"packages": {}
}
}
2024-02-23 19:01:55 +01:00
],
2024-05-22 15:47:21 +02:00
"request": {
"method": "POST",
"header": [
{
"key": "X-D4Science-Context",
"value": "{{encoded_context}}",
"type": "text"
}
],
"body": {
"mode": "urlencoded",
"urlencoded": [
{
"key": "grant_type",
"value": "refresh_token",
"type": "text"
},
{
"key": "client_id",
"value": "{{client-id-user}}",
"type": "text"
},
{
"key": "refresh_token",
"value": "{{refresh_token}}",
"type": "text"
},
{
"key": "client_secret",
"value": "{{service_client_secret}}",
"type": "text",
"disabled": true
}
]
},
"url": {
"raw": "{{keycloak_url}}/realms/{{realm}}/protocol/openid-connect/token",
"host": [
"{{keycloak_url}}"
],
"path": [
"realms",
"{{realm}}",
"protocol",
"openid-connect",
"token"
]
}
},
"response": []
},
{
"name": "introspect access token",
"request": {
"auth": {
"type": "noauth"
},
"method": "POST",
"header": [
{
"key": "Authorization",
"value": "Basic YWxmcmVkby1pZG0tc2VydmljZS1kZXY6OTc5YmQzYmMtNWNjNC0xMWVjLWJmNjMtMDI0MmFjMTMwMDAy",
"type": "text"
}
],
"body": {
"mode": "urlencoded",
"urlencoded": [
{
"key": "token",
"value": "{{access_token}}",
"type": "text"
},
{
"key": "username\n",
"value": "{{introspect_client}}",
"type": "text",
"disabled": true
},
{
"key": "password",
"value": "{{introspect_secret}}",
"type": "text",
"disabled": true
},
{
"key": "client_id",
"value": "{{introspect_client}}",
"type": "text"
},
{
"key": "client_secret",
"value": "{{introspect_secret}}",
"type": "text"
}
]
},
"url": {
"raw": "{{keycloak_url}}/realms/{{realm}}/protocol/openid-connect/token/introspect",
"host": [
"{{keycloak_url}}"
],
"path": [
"realms",
"{{realm}}",
"protocol",
"openid-connect",
"token",
"introspect"
]
}
},
"response": []
},
{
"name": "New Request",
"request": {
"method": "GET",
"header": []
},
"response": []
2024-02-23 19:01:55 +01:00
}
2024-05-22 15:47:21 +02:00
]
2024-02-23 19:01:55 +01:00
},
{
2024-05-22 15:47:21 +02:00
"name": "REST",
"item": [
{
"name": "hello TOKEN PARAM",
"request": {
"auth": {
"type": "noauth"
},
"method": "GET",
"header": [
{
"key": "",
"value": "{{token}}",
"type": "text"
}
],
"url": {
"raw": "{{base_url}}/{{application}}/hello?gcube-token={{gcube_token}}",
"host": [
"{{base_url}}"
],
"path": [
"{{application}}",
"hello"
],
"query": [
{
"key": "gcube-token",
"value": "{{gcube_token}}"
}
]
}
},
"response": []
2024-02-23 19:01:55 +01:00
},
2024-05-22 15:47:21 +02:00
{
"name": "details TOKEN PARAM",
"request": {
"auth": {
"type": "noauth"
},
"method": "GET",
"header": [],
"url": {
"raw": "{{base_url}}/{{application}}/details?gcube-token={{gcube_token}}",
"host": [
"{{base_url}}"
],
"path": [
"{{application}}",
"details"
],
"query": [
{
"key": "gcube-token",
"value": "{{gcube_token}}"
}
]
}
},
"response": []
},
{
"name": "test keycloak TOKEN PARAM",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{uma_token}}",
"type": "string"
}
]
},
"method": "GET",
"header": [
{
"key": "gcube-token",
"value": "{{gcube_token}}",
"type": "text",
"disabled": true
}
],
"url": {
"raw": "{{base_url}}/{{application}}/keycloak?client_secret={{service_client_secret}}",
"host": [
"{{base_url}}"
],
"path": [
"{{application}}",
"keycloak"
],
"query": [
{
"key": "client_secret",
"value": "{{service_client_secret}}"
},
{
"key": "client_id",
"value": "{{current_client-id}}",
"disabled": true
}
]
}
},
"response": []
},
{
"name": "auth org member TOKEN PARAM",
"request": {
"auth": {
"type": "noauth"
},
"method": "GET",
"header": [],
"url": {
"raw": "{{base_url}}/{{application}}/auth/org_member?gcube-token={{gcube_token}}",
"host": [
"{{base_url}}"
],
"path": [
"{{application}}",
"auth",
"org_member"
],
"query": [
{
"key": "gcube-token",
"value": "{{gcube_token}}"
}
]
}
},
"response": []
},
{
"name": "auth member TOKEN PARAM Copy",
"request": {
"auth": {
"type": "noauth"
},
"method": "GET",
"header": [],
"url": {
"raw": "{{base_url}}/{{application}}/auth/member?gcube-token={{gcube_token}}",
"host": [
"{{base_url}}"
],
"path": [
"{{application}}",
"auth",
"member"
],
"query": [
{
"key": "gcube-token",
"value": "{{gcube_token}}"
}
]
}
},
"response": []
},
{
"name": "guest",
"request": {
"auth": {
"type": "noauth"
},
"method": "GET",
"header": [],
"url": {
"raw": "{{base_url}}/{{application}}/guest",
"host": [
"{{base_url}}"
],
"path": [
"{{application}}",
"guest"
]
}
},
"response": []
},
{
"name": "hello BEARER",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{base_url}}/{{application}}/hello",
"host": [
"{{base_url}}"
],
"path": [
"{{application}}",
"hello"
]
}
},
"response": []
},
{
"name": "details BEARER",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{base_url}}/{{application}}/details",
"host": [
"{{base_url}}"
],
"path": [
"{{application}}",
"details"
]
}
},
"response": []
},
{
"name": "auth org member BEARER Copy",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{uma_token}}",
"type": "string"
}
]
},
"method": "GET",
"header": [],
"url": {
"raw": "{{base_url}}/{{application}}/auth/org_member",
"host": [
"{{base_url}}"
],
"path": [
"{{application}}",
"auth",
"org_member"
]
}
},
"response": []
},
{
"name": "auth member BEARER Copy",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{uma_token}}",
"type": "string"
}
]
},
"method": "GET",
"header": [],
"url": {
"raw": "{{base_url}}/{{application}}/auth/member",
"host": [
"{{base_url}}"
],
"path": [
"{{application}}",
"auth",
"member"
]
}
},
"response": []
},
{
"name": "test keycloak BEARER",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{uma_token}}",
"type": "string"
}
]
},
"method": "GET",
"header": [
{
"key": "gcube-token",
"value": "{{gcube_token}}",
"type": "text",
"disabled": true
}
],
"url": {
"raw": "{{base_url}}/{{application}}/keycloak?client_secret={{service_client_secret}}",
"host": [
"{{base_url}}"
],
"path": [
"{{application}}",
"keycloak"
],
"query": [
{
"key": "client_secret",
"value": "{{service_client_secret}}"
},
{
"key": "client_id",
"value": "{{current_client-id}}",
"disabled": true
}
]
}
},
"response": []
},
{
"name": "New Request",
"request": {
"auth": {
"type": "basic",
"basic": [
{
"key": "password",
"value": "cuberandom321",
"type": "string"
},
{
"key": "username",
"value": "notifications@d4science.org",
"type": "string"
}
]
},
"method": "GET",
"header": [],
"url": {
"raw": "https://next.dev.d4science.org:443/api/jsonws/company/get-company-by-web-id/web-id/liferay.com",
"protocol": "https",
"host": [
"next",
"dev",
"d4science",
"org"
],
"port": "443",
"path": [
"api",
"jsonws",
"company",
"get-company-by-web-id",
"web-id",
"liferay.com"
]
2024-02-23 19:01:55 +01:00
}
2024-05-22 15:47:21 +02:00
},
"response": []
2024-02-23 19:01:55 +01:00
}
2024-05-22 15:47:21 +02:00
]
2024-02-23 19:01:55 +01:00
}
],
2024-05-22 15:47:21 +02:00
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{access_token}}",
"type": "string"
}
]
},
2024-02-23 19:01:55 +01:00
"event": [
{
"listen": "prerequest",
"script": {
"type": "text/javascript",
2024-05-22 15:47:21 +02:00
"packages": {},
2024-02-23 19:01:55 +01:00
"exec": [
""
]
}
},
{
"listen": "test",
"script": {
"type": "text/javascript",
2024-05-22 15:47:21 +02:00
"packages": {},
2024-02-23 19:01:55 +01:00
"exec": [
""
]
}
}
],
"variable": [
{
"key": "base_url",
2024-05-22 15:47:21 +02:00
"value": "http://localhost:8080",
2024-02-23 19:01:55 +01:00
"type": "string"
},
{
2024-05-22 15:47:21 +02:00
"key": "uma_token",
"value": "",
2024-02-23 19:01:55 +01:00
"type": "string"
},
{
2024-05-22 15:47:21 +02:00
"key": "username",
2024-02-23 19:01:55 +01:00
"value": "",
"type": "string"
},
{
2024-05-22 15:47:21 +02:00
"key": "user_id",
2024-02-23 19:01:55 +01:00
"value": "",
"type": "string"
2024-05-22 15:47:21 +02:00
},
{
"key": "role_name",
"value": "Member"
},
{
"key": "social_users_path",
"value": "2/users",
"type": "string"
},
{
"key": "social_people_path",
"value": "2/people",
"type": "string"
},
{
"key": "application",
"value": "helloworld",
"type": "string"
},
{
"key": "base_url_marco",
"value": "http://146.48.85.179:9999",
"type": "string"
},
{
"key": "base_url_local",
"value": "http://localhost:8080",
"type": "string"
2024-02-23 19:01:55 +01:00
}
]
}