Using Resource Owner Password Credential (ROPC) Grant Type
Use the instructions here to generate an OAuth token using Resource Owner Password Credential (ROPC).
Generating the OAuth Token
Use the endpoint, as shown below, to generate an OAuth access token to use for accessing the API. This endpoint can be invoked with Standard authentication of a valid Base64 encoded value of "user:password" on Oracle Cloud Infrastructure that has been provisioned into P6.
Scope must be the full path (always https) to the context root of the application - https://<server URL>/p6ws/.
Example using CURL
curl -X POST "https://<server URL>/p6ws/oauth/token" \
-H "authToken" : Base64 encoded value of "user:password"
-H "token_exp": "3600"\
- <Base64-Encoded-value-of-user-password>: The Base64 encoded value of "user:password".
- Use the curl command to encode:
"$(echo -n user-name:password | base64)"
- Use the curl command to encode:
Response Payload
Raw <OAuth-Access-Token> token will be returned as part of Response payload.
Example Using a REST Client
POST https://<server URL>/p6ws/oauth/token
In Headers:
-H "authToken" : Base64 encoded value of "user:password"
-H "token_exp": "3600"
Response:
Raw <OAuth-Access-Token> token will be returned as part of Response payload.
Related Topics
Authentication and Session Management
Authentication Using Username Token Profile
Authentication Using Oracle Web Services Manager
Consuming P6 EPPM Web Services over HTTPS (SSL) Using Username Token Profile
Authentication Using SAML Token Profile
Authentication Using HTTP Cookies (On-Premises Only)
Using JSON Web Token (JWT) Grant Type
Last Published Friday, November 29, 2024