Skip to content

Commit 956af84

Browse files
committed
+ Code Review Changes
1 parent 985ba40 commit 956af84

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,15 @@ Meta Key is a key generated by an entity that can be used to authenticate on beh
4949
## OAuth Support
5050
The CyberSource OAuth2.0 Authorization Server (or API Auth Service) will issue access tokens (based on merchant user credentials) to CyberSource or third-party Applications. These applications can access CyberSource API's on the merchant's behalf, using the access tokens.
5151
During application registration, third-party application developers are issued a client_id and optionally a client_secret (if they can be considered a confidential client, for example a web application). Requesting an access token is fairly straightforward: Use the CyberSource token URL and include a set of form-urlencoded parameters.
52-
Upon receipt of this request, the CyberSource Authorization Server validates the user credentials, then mints and returns a response to your application. The contents of this response depend on the type of application. For web server applications, the response is an authorization code which can be exchanged for an access token and (optionally) a refresh token. For client-side applications (e.g. mobile apps), the response is an access token. [For the Resource Owner Password Flow, only the latter response is returned.]
52+
For more detailed information on OAuth, refer to the link - https://developer.cybersource.com/api/developer-guides/OAuth/cybs_extend_intro.html
53+
54+
Set the run environment to OAuth enabled URLs. OAuth only works in these run environments.
55+
```
56+
// For TESTING use
57+
props.setProperty("runEnvironment", "CyberSource.Environment.MutualAuth.SANDBOX");
58+
// For PRODUCTION use
59+
//props.setProperty("runEnvironment", "CyberSource.Environment.MutualAuth.PRODUCTION");
60+
```
5361

5462
### Switching between the sandbox environment and the production environment
5563
Cybersource maintains a complete sandbox environment for testing and development purposes. This sandbox environment is an exact duplicate of our production environment with the transaction authorization and settlement process simulated. By default, this SDK is configured to communicate with the sandbox environment. To switch to the production environment, set the `runEnvironment` property in the SDK Configuration. See our sample at https://github.com/CyberSource/cybersource-rest-samples-java/blob/master/src/main/java/Data/Configuration.java.

0 commit comments

Comments
 (0)