Skip to content

Commit 2f80b64

Browse files
committed
Update token endpoint url
1 parent 65c35a3 commit 2f80b64

File tree

8 files changed

+16
-16
lines changed

8 files changed

+16
-16
lines changed

import-export-cli/box/resources/sample/sample_config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ environments:
1515
devportal: https://localhost:9443
1616
registration: https://localhost:9443
1717
admin: https://localhost:9443
18-
token: https://localhost:8243/token
18+
token: https://localhost:9443/oauth2/token
1919
mi: https://localhost:9164
2020
sample-env2:
2121
apim: https://wso2am:9443
@@ -31,5 +31,5 @@ environments:
3131
devportal: https://localhost:9443
3232
registration: https://localhost:9443
3333
admin: https://localhost:9443
34-
token: https://localhost:8243/token
34+
token: https://localhost:9443/oauth2/token
3535
mi: ""

import-export-cli/cmd/add.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,13 @@ const addCmdExamples = utils.ProjectName + ` ` + AddCmdLiteral + ` ` + AddEnvCmd
4040
--publisher https://apim.com:9443 \
4141
--devportal https://apps.com:9443 \
4242
--admin https://apim.com:9443 \
43-
--token https://gw.com:8243/token \
43+
--token https://gw.com:9443/oauth2/token \
4444
--mi https://localhost:9164
4545
4646
` + utils.ProjectName + ` ` + AddCmdLiteral + ` ` + AddEnvCmdLiteralTrimmed + ` dev \
4747
--apim https://apim.com:9443 \
4848
--registration https://idp.com:9443 \
49-
--token https://gw.com:8243/token
49+
--token https://gw.com:9443/oauth2/token
5050
5151
NOTE: The flag --environment (-e) is mandatory.
5252
You can either provide only the flag --apim , or all the other 4 flags (--registration --publisher --devportal --admin) without providing --apim flag.

import-export-cli/cmd/addEnv.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,13 +54,13 @@ const addEnvCmdExamples = utils.ProjectName + ` ` + AddCmdLiteral + ` ` + AddEnv
5454
--publisher https://apim.com:9443 \
5555
--devportal https://apps.com:9443 \
5656
--admin https://apim.com:9443 \
57-
--token https://gw.com:8243/token \
57+
--token https://gw.com:9443/oauth2/token \
5858
--mi https://localhost:9164
5959
6060
` + utils.ProjectName + ` ` + AddCmdLiteral + ` ` + AddEnvCmdLiteralTrimmed + ` dev \
6161
--apim https://apim.com:9443 \
6262
--registration https://idp.com:9443 \
63-
--token https://gw.com:8243/token
63+
--token https://gw.com:9443/oauth2/token
6464
6565
You can either provide only the flag --apim , or all the other 4 flags (--registration --publisher --devportal --admin) without providing --apim flag.
6666
If you are omitting any of --registration --publisher --devportal --admin flags, you need to specify --apim flag with the API Manager endpoint. In both of the

import-export-cli/cmd/deprecated/addEnv.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,12 @@ const addEnvCmdExamples = utils.ProjectName + ` ` + addEnvCmdLiteral + ` -e prod
4545
--publisher https://apim.com:9443 \
4646
--devportal https://apps.com:9443 \
4747
--admin https://apim.com:9443 \
48-
--token https://gw.com:8243/token
48+
--token https://gw.com:9443/oauth2/token
4949
5050
` + utils.ProjectName + ` ` + addEnvCmdLiteral + ` -e dev \
5151
--apim https://apim.com:9443 \
5252
--registration https://idp.com:9443 \
53-
--token https://gw.com:8243/token
53+
--token https://gw.com:9443/oauth2/token
5454
5555
NOTE: The flag --environment (-e) is mandatory.
5656
You can either provide only the flag --apim , or all the other 4 flags (--registration --publisher --devportal --admin) without providing --apim flag.

import-export-cli/docs/apictl_add-env.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@ apictl add-env -e test \
2121
--publisher https://apim.com:9443 \
2222
--devportal https://apps.com:9443 \
2323
--admin https://apim.com:9443 \
24-
--token https://gw.com:8243/token
24+
--token https://gw.com:9443/oauth2/token
2525
2626
apictl add-env -e dev \
2727
--apim https://apim.com:9443 \
2828
--registration https://idp.com:9443 \
29-
--token https://gw.com:8243/token
29+
--token https://gw.com:9443/oauth2/token
3030
3131
NOTE: The flag --environment (-e) is mandatory.
3232
You can either provide only the flag --apim , or all the other 4 flags (--registration --publisher --devportal --admin) without providing --apim flag.

import-export-cli/docs/apictl_add.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,13 @@ apictl add env test \
2424
--publisher https://apim.com:9443 \
2525
--devportal https://apps.com:9443 \
2626
--admin https://apim.com:9443 \
27-
--token https://gw.com:8243/token \
27+
--token https://gw.com:9443/oauth2/token \
2828
--mi https://localhost:9164
2929
3030
apictl add env dev \
3131
--apim https://apim.com:9443 \
3232
--registration https://idp.com:9443 \
33-
--token https://gw.com:8243/token
33+
--token https://gw.com:9443/oauth2/token
3434
3535
NOTE: The flag --environment (-e) is mandatory.
3636
You can either provide only the flag --apim , or all the other 4 flags (--registration --publisher --devportal --admin) without providing --apim flag.

import-export-cli/docs/apictl_add_env.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,13 @@ apictl add env test \
2828
--publisher https://apim.com:9443 \
2929
--devportal https://apps.com:9443 \
3030
--admin https://apim.com:9443 \
31-
--token https://gw.com:8243/token \
31+
--token https://gw.com:9443/oauth2/token \
3232
--mi https://localhost:9164
3333
3434
apictl add env dev \
3535
--apim https://apim.com:9443 \
3636
--registration https://idp.com:9443 \
37-
--token https://gw.com:8243/token
37+
--token https://gw.com:9443/oauth2/token
3838
3939
You can either provide only the flag --apim , or all the other 4 flags (--registration --publisher --devportal --admin) without providing --apim flag.
4040
If you are omitting any of --registration --publisher --devportal --admin flags, you need to specify --apim flag with the API Manager endpoint. In both of the

import-export-cli/resources/README.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -457,13 +457,13 @@ <h4 id="add-env">add env [environment]</h4>
457457
--publisher https://apim.com:9443 \
458458
--devportal https://apps.com:9443 \
459459
--admin https://apim.com:9443 \
460-
--token https://gw.com:8243/token \
460+
--token https://gw.com:9443/oauth2/token \
461461
--mi https://localhost:9164
462462

463463
apictl add env prod \
464464
--apim https://apim.com:9443 \
465465
--registration https://idp.com:9443 \
466-
--token https://gw.com:8243/token
466+
--token https://gw.com:9443/oauth2/token
467467
</code></pre>
468468
</li>
469469
<li>

0 commit comments

Comments
 (0)