Documentation | Securing third-party integrations > Writing OAuth2 clients for Foundry