Skip to content

Commit f5fddc3

Browse files
committed
fix issues in user impersonation docs
1 parent fb91d0b commit f5fddc3

File tree

11 files changed

+33
-33
lines changed

11 files changed

+33
-33
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
{% set base_url = "api.asgardeo.io/{organization_name}" %}
2-
{% set base_url_sample = "api.asgardeo.io/bifrost" %}
1+
{% set base_url = "https://api.asgardeo.io/t/{organization_name}" %}
2+
{% set base_url_sample = "https://api.asgardeo.io/t/bifrost" %}
33

44

55
{% include "../../../../../includes/guides/authorization/user-impersonation/index.md" %}
Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
{% set base_url = "https://api.asgardeo.io/{organization_name}" %}
2-
{% set base_url_sample = "https://api.asgardeo.io/bifrost" %}
3-
1+
{% set base_url = "https://api.asgardeo.io/t/{organization_name}" %}
2+
{% set base_url_sample = "https://api.asgardeo.io/t/bifrost" %}
43

54
{% include "../../../../../includes/guides/authorization/user-impersonation/user-impersonation-via-business-app.md" %}
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
{% set base_url = "https://api.asgardeo.io/{organization_name}" %}
2-
{% set base_url_sample = "https://api.asgardeo.io/bifrost" %}
3-
1+
{% set base_url = "https://api.asgardeo.io/t/{organization_name}" %}
2+
{% set base_url_sample = "https://api.asgardeo.io/t/bifrost" %}
3+
{% set console_url = "https://console.asgardeo.io/t/{organization_name}" %}
44

55
{% include "../../../../../includes/guides/authorization/user-impersonation/user-impersonation.md" %}
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{% set base_url = "localhost:9443" %}
2-
{% set base_url_sample = "localhost:9443" %}
1+
{% set base_url = "https://localhost:9443" %}
2+
{% set base_url_sample = "https://localhost:9443" %}
33

44
{% include "../../../../../includes/guides/authorization/user-impersonation.md" %}
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{% set base_url = "localhost:9443" %}
2-
{% set base_url_sample = "localhost:9443" %}
1+
{% set base_url = "https://localhost:9443" %}
2+
{% set base_url_sample = "https://localhost:9443" %}
33

44
{% include "../../../../../includes/guides/authorization/user-impersonation.md" %}
189 KB
Loading
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{% set base_url = "localhost:9443" %}
2-
{% set base_url_sample = "localhost:9443" %}
1+
{% set base_url = "https://localhost:9443" %}
2+
{% set base_url_sample = "https://localhost:9443" %}
33

44
{% include "../../../../../../includes/guides/authorization/user-impersonation/index.md" %}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{% set base_url = "https://localhost:9443" %}
22
{% set base_url_sample = "https://localhost:9443" %}
3+
{% set console_url = "https://localhost:9443/console" %}
34

45
{% include "../../../../../../includes/guides/authorization/user-impersonation/user-impersonation.md" %}

en/includes/guides/authorization/user-impersonation.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ Subject token is a JWT token that contains information on both the impersonated
197197
=== "Request Format"
198198
199199
``` bash
200-
https://{{base_url}}/oauth2/authorize?
200+
{{base_url}}/oauth2/authorize?
201201
client_id={clientID}
202202
redirect_uri={redirect_uri}
203203
&state={sample_state}
@@ -211,7 +211,7 @@ Subject token is a JWT token that contains information on both the impersonated
211211
=== "Sample Request"
212212
213213
``` bash
214-
https://{{base_url_sample}}/oauth2/authorize?
214+
{{base_url_sample}}/oauth2/authorize?
215215
client_id=jVcW4oLn1Jjb2T94H4gtPV9z5Y0a
216216
&redirect_uri=https://oauth.pstmn.io/v1/callback
217217
&state=sample_state
@@ -269,7 +269,7 @@ The decoded subject token may looks as follows:
269269
"nbf": 1718694997,
270270
"azp": "jVcW4oLn1Jjb2T94H4gtPV9z5Y0a",
271271
"scope": "internal_login internal_user_mgt_list internal_user_mgt_view",
272-
"iss": "https://{{base_url}}/oauth2/token",
272+
"iss": "{{base_url}}/oauth2/token",
273273
"may_act": {
274274
"sub": "2d931c9d-876e-46c0-9aba-f34501879dfc"
275275
},
@@ -290,7 +290,7 @@ Once a subject token is received, it can then be exchanged for an access token w
290290
=== "Request Format"
291291
292292
``` bash
293-
curl --location 'https://{{base_url}}/oauth2/token' \
293+
curl --location '{{base_url}}/oauth2/token' \
294294
--header 'Content-Type: application/x-www-form-urlencoded' \
295295
--header 'Authorization: Basic <base64 Encoded (clientId:clientSecret)>' \
296296
--data-urlencode 'subject_token={subject_token}' \
@@ -304,7 +304,7 @@ Once a subject token is received, it can then be exchanged for an access token w
304304
=== "Sample Request"
305305
306306
``` bash
307-
curl --location 'https://{{base_url_sample}}/oauth2/token' \
307+
curl --location '{{base_url_sample}}/oauth2/token' \
308308
--header 'Content-Type: application/x-www-form-urlencoded' \
309309
--header 'Authorization: Basic QVVhZkoyeWpXM2dUR3JZaWZCTlF1MTBXRWtNYToybWN1blJ1T1Y5WFQ3QXpzRDEyVmY3cGhOVWJRUmdlT0NtZW5Wa0xKQTR3YQ==' \
310310
--data-urlencode 'subject_token=eyJ4NXQiOiJDN3Q1elQ4UUhXcWJBZ3ZJ9HVXWTN4UnlwcE0iLCJraWQiOiJaR0UyTXpjeE1XWXpORGhtTVRoak1HSmlOamhpTmpNMFlqWXhNakJtTUdZeFl6ZzBabU0zWldJd1pHRmxZakk1TTJZelpHTmtaalkxWXpBeE5qZzNNUV9SUzI1NiIsInR5cCI6Imp3dCIsImFsZyI6IlJTMjU2In0.eyJzdWIiOiIxYmI0NmMyOC0zN2U4LTQxN2UtYWI5NS0wMzAzYTYzM2ZlZTIiLCJhdWQiOiJBVWFmSjJ5alczZ1RHcllpZkJOUXUxMFdFa01hIiwibmJmIjoxNzI4ODc5NTQ3LCJhenAiOiJBVWFmSjJ5alczZ1RHcllpZkJOUXUxMFdFa01hIiwic2NvcGUiOiJpbnRlcm5hbF9vcmdfYXBwbGljYXRpb25fbWd0X3ZpZXcgb3BlbmlkIiwiaXNzIjoiaHR0cHM6XC9cL2FwaS5hc2dhcmRlby5pb1wvdFwvaGltZXNoZGV2aW5kYVwvb2F1dGgyXC90b2tlbiIsIm1heV9hY3QiOnsic3ViIjoiNTllNmNlZWEtOGU2Ni00MTkyLWJlMDktMzQwYmIwMmQ1N2MxIn0sImV4cCI6MTcyODg3OTcyNywiaWF0IjoxNzI4ODc5NTQ3LCJqdGkiOiIzYjIzNDViOS1jN2Y4LTQ4MjUtYWYyNC1lNDRjYjk3Y2U5NWEiLCJjbGllbnRfaWQiOiJBVWFmSjJ5alczZ1RHcllpZkJOUXUxMFdFa01hIn0.UmhvpiqrgbgJ8MSXNkzyUMbw5c2BG5oWv9HpBDrZwig2HkM-FpceFlGi4tnl45LGAxDeVE2NJBAII3Q6ccMK0pk9DM2piX0m7gtxtfNy9XQURMad39JOY1GTy8p9uJY0wYWrYXYCc3nyF83kwu4y3xHABYd1JNjcZgLW_B5M1XUUk05cOOyJLOvjaMAkl8DlohD9mAY4-C2UyaxsG8ftfth4mMJZeg3MJOW150cye9TAil0SACO6DIv3Tik7Wt_zyghSueBKQiOqgLEXZdphIT-7TWYASiJigTX0n_PKBF67qOo9tD5FIDEh5fQquXYAjPP9LHJYeK_C6dkh9jiX7w' \
@@ -333,7 +333,7 @@ The decoded access token may looks as follows:
333333
{
334334
"sub": "32bc4697-ed0f-4546-8387-dcd6403e7caa",
335335
"aut": "APPLICATION_USER",
336-
"iss": "https://{{base_url_sample}}/oauth2/token",
336+
"iss": "{{base_url_sample}}/oauth2/token",
337337
"client_id": "jVcW4oLn1Jjb2T94H4gtPV9z5Y0a",
338338
"aud": "jVcW4oLn1Jjb2T94H4gtPV9z5Y0a",
339339
"nbf": 1718695052,
@@ -446,7 +446,7 @@ The following diagram shows the detailed steps involved in receiving an imperson
446446
=== "Request Format"
447447
448448
``` bash
449-
curl --location 'https://{{base_url}}/oauth2/token' \
449+
curl --location '{{base_url}}/oauth2/token' \
450450
--header 'Content-Type: application/x-www-form-urlencoded' \
451451
--header 'Authorization: Basic <base64 Encoded (clientId:clientSecret)>' \
452452
--data-urlencode 'client_id={Client_Id}' \
@@ -459,7 +459,7 @@ The following diagram shows the detailed steps involved in receiving an imperson
459459
=== "Sample Request"
460460
461461
``` bash
462-
curl --location 'https://{{base_url_sample}}/oauth2/token' \
462+
curl --location '{{base_url_sample}}/oauth2/token' \
463463
--header 'Content-Type: application/x-www-form-urlencoded' \
464464
--header 'Authorization: Basic QVVhZkoyeWpXM2dUR3JZaWZCTlF1MTBXRWtNYToybWN1blJ1T1Y5WFQ3QXpzRDEyVmY3cGhOVWJRUmdlT0NtZW5Wa0xKQTR3YQ==' \
465465
--data-urlencode 'client_id=AUafJ2yjW3gTGrYifBNQu10WEkMb' \

en/includes/guides/authorization/user-impersonation/user-impersonation-via-business-app.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ A subject token refers to a JSON Web Token (JWT) containing details about both t
118118
=== "Request Format"
119119

120120
```bash
121-
https://{{base_url}}/oauth2/authorize?
121+
{{base_url}}/oauth2/authorize?
122122
client_id={clientID}
123123
&redirect_uri={redirect_uri}
124124
&state={sample_state}
@@ -130,7 +130,7 @@ A subject token refers to a JSON Web Token (JWT) containing details about both t
130130

131131
=== "Example"
132132
```bash
133-
https://{{base_url_sample}}/oauth2/authorize?
133+
{{base_url_sample}}/oauth2/authorize?
134134
client_id=jVcW4oLn1Jjb2T94H4gtPV9z5Y0a
135135
&redirect_uri=https://oauth.pstmn.io/v1/callback
136136
&state=sample_state
@@ -188,7 +188,7 @@ The decoded subject token looks as follows:
188188
"nbf": 1718694997,
189189
"azp": "jVcW4oLn1Jjb2T94H4gtPV9z5Y0a",
190190
"scope": "internal_login internal_user_mgt_list internal_user_mgt_view",
191-
"iss": "https://{{base_url}}/oauth2/token",
191+
"iss": "{{base_url}}/oauth2/token",
192192
"may_act": {
193193
"sub": "2d931c9d-876e-46c0-9aba-f34501879dfc"
194194
},
@@ -208,7 +208,7 @@ After receiving a subject token, exchange it for an access token that carries th
208208
=== "Request Format"
209209

210210
``` bash
211-
curl --location 'https://{{base_url}}/oauth2/token' \
211+
curl --location '{{base_url}}/oauth2/token' \
212212
--header 'Content-Type: application/x-www-form-urlencoded' \
213213
--header 'Authorization: Basic <base64 Encoded (clientId:clientSecret)>' \
214214
--data-urlencode 'subject_token={subject_token}' \
@@ -222,7 +222,7 @@ After receiving a subject token, exchange it for an access token that carries th
222222
=== "Example"
223223

224224
``` bash
225-
curl --location 'https://{{base_url_sample}}/oauth2/token' \
225+
curl --location '{{base_url_sample}}/oauth2/token' \
226226
--header 'Content-Type: application/x-www-form-urlencoded' \
227227
--header 'Authorization: Basic QVVhZkoyeWpXM2dUR3JZaWZCTlF1MTBXRWtNYToybWN1blJ1T1Y5WFQ3QXpzRDEyVmY3cGhOVWJRUmdlT0NtZW5Wa0xKQTR3YQ==' \
228228
--data-urlencode 'subject_token=eyJ4NXQiOiJDN3Q1elQ4UUhXcWJBZ3ZJ9HVXWTN4UnlwcE0iLCJraWQiOiJaR0UyTXpjeE1XWXpORGhtTVRoak1HSmlOamhpTmpNMFlqWXhNakJtTUdZeFl6ZzBabU0zWldJd1pHRmxZakk1TTJZelpHTmtaalkxWXpBeE5qZzNNUV9SUzI1NiIsInR5cCI6Imp3dCIsImFsZyI6IlJTMjU2In0.eyJzdWIiOiIxYmI0NmMyOC0zN2U4LTQxN2UtYWI5NS0wMzAzYTYzM2ZlZTIiLCJhdWQiOiJBVWFmSjJ5alczZ1RHcllpZkJOUXUxMFdFa01hIiwibmJmIjoxNzI4ODc5NTQ3LCJhenAiOiJBVWFmSjJ5alczZ1RHcllpZkJOUXUxMFdFa01hIiwic2NvcGUiOiJpbnRlcm5hbF9vcmdfYXBwbGljYXRpb25fbWd0X3ZpZXcgb3BlbmlkIiwiaXNzIjoiaHR0cHM6XC9cL2FwaS5hc2dhcmRlby5pb1wvdFwvaGltZXNoZGV2aW5kYVwvb2F1dGgyXC90b2tlbiIsIm1heV9hY3QiOnsic3ViIjoiNTllNmNlZWEtOGU2Ni00MTkyLWJlMDktMzQwYmIwMmQ1N2MxIn0sImV4cCI6MTcyODg3OTcyNywiaWF0IjoxNzI4ODc5NTQ3LCJqdGkiOiIzYjIzNDViOS1jN2Y4LTQ4MjUtYWYyNC1lNDRjYjk3Y2U5NWEiLCJjbGllbnRfaWQiOiJBVWFmSjJ5alczZ1RHcllpZkJOUXUxMFdFa01hIn0.UmhvpiqrgbgJ8MSXNkzyUMbw5c2BG5oWv9HpBDrZwig2HkM-FpceFlGi4tnl45LGAxDeVE2NJBAII3Q6ccMK0pk9DM2piX0m7gtxtfNy9XQURMad39JOY1GTy8p9uJY0wYWrYXYCc3nyF83kwu4y3xHABYd1JNjcZgLW_B5M1XUUk05cOOyJLOvjaMAkl8DlohD9mAY4-C2UyaxsG8ftfth4mMJZeg3MJOW150cye9TAil0SACO6DIv3Tik7Wt_zyghSueBKQiOqgLEXZdphIT-7TWYASiJigTX0n_PKBF67qOo9tD5FIDEh5fQquXYAjPP9LHJYeK_C6dkh9jiX7w' \
@@ -251,7 +251,7 @@ The decoded access token looks as follows:
251251
{
252252
"sub": "32bc4697-ed0f-4546-8387-dcd6403e7caa",
253253
"aut": "APPLICATION_USER",
254-
"iss": "https://{{base_url_sample}}/oauth2/token",
254+
"iss": "{{base_url_sample}}/oauth2/token",
255255
"client_id": "jVcW4oLn1Jjb2T94H4gtPV9z5Y0a",
256256
"aud": "jVcW4oLn1Jjb2T94H4gtPV9z5Y0a",
257257
"nbf": 1718695052,

0 commit comments

Comments
 (0)