Configures the OAuth 2.0 application credentials for Egnyte authentication. These credentials are obtained by registering your application at https://developers.egnyte.com.
Arguments
- domain
Your Egnyte domain (the subdomain of yourcompany.egnyte.com).
- client_id
The API key (client ID) from your registered application.
- client_secret
The client secret from your registered application.
- redirect_uri
The redirect URI configured for your app in the Egnyte developer portal. Must be HTTPS. Defaults to
https://localhost/callback.
Details
After registering at https://developers.egnyte.com, you will receive a client_id and client_secret. Your application must be approved by Egnyte before it becomes active.
Important: You must configure the same redirect_uri in your Egnyte app settings. Egnyte requires all redirect URIs to be HTTPS.
During development, your API key only works with your registered Egnyte domain. After certification, it works with all Egnyte domains.
See also
eg_oauth_authorize() to complete the OAuth flow.