Prev Next

PostOAuthCode

Inputs

Parameter

Details

code

  • C++: const char*
  • C#: string

The OAuth code value returned to the user after successful authorisation.

Outputs via Callbacks

  • AddProperty - "accessToken" to be used for OAuth
  • [Optional] AddProperty - "refreshToken" for OAuth
  • [Optional] LogMessage or SetError - to provide user feedback.

Details

After a successful login to the OAuth provider by the user, Enterprise Architect will call this method with the OAuth 'code'. Make an Access Token Request to exchange the code for an OAuth Access Token (using the OAuth token endpoint).

Return the accessToken and refreshToken with AddProperty.