Book a Demo

Please note : This help page is not for the latest version of Enterprise Architect. The latest help can be found here.

Prev Next

PostOAuthCode

Inputs

Parameter

Details

code

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

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

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.