Skip to content

Commit 41dc0e9

Browse files
committed
MPDO-1015: Updated the token endpoint
1 parent 9fc2b7c commit 41dc0e9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

samples/oci-apigw-idcs-auth-basic/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,12 +114,12 @@ Review the following files in the current folder:
114114

115115
The name of your function _basicauth_ is specified in [func.yaml](./func.yaml).
116116

117-
set the following config variables to the values noted while configuring IDCS.
117+
set the following config variables to the values noted while configuring IDCS. The IDCS URL is the token endpoint that returns the access token after validating credentials
118118

119119
```
120120
CLIENT_ID = "xxxxxxxxxxx";
121121
CLIENT_SECRET = "xxxxxxxxx";
122-
IDCS_URL = "https://idcs-xxxxxxxx.identity.oraclecloud.com";
122+
IDCS_URL = "https://idcs-xxxxxxxx.identity.oraclecloud.com/oauth2/v1/token";
123123
124124
//INFORMATION ABOUT THE TARGET APPLICATION
125125
SCOPE_AUD = "display-httprequest-infodisplay-httprequest-info";
@@ -128,7 +128,7 @@ SCOPE_AUD = "display-httprequest-infodisplay-httprequest-info";
128128
For the unit test to run, set the following variables in src/test/java/com/example/fn/BasicAuthTest.java
129129

130130
```
131-
private static final String TEST_IDCS_URL = "https://idcs-xxxxxxxx.identity.oraclecloud.com";
131+
private static final String TEST_IDCS_URL = "https://idcs-xxxxxxxx.identity.oraclecloud.com/oauth2/v1/token";
132132
private static final String TEST_CLIENT_ID = "xxxxxxxxxxx";
133133
private static final String TEST_CLIENT_SECRET = "xxxxxxxxxxx";
134134
private static final String TEST_SCOPE_AUD = "display-httprequest-infodisplay-httprequest-info";

0 commit comments

Comments
 (0)