Print
Original Question
or Issue:
|
In FileCloud, there is an option to log in with ReCaptcha enabled. However, this may post an issue with APIs as currently there is no API to authenticate with ReCaptcha. |
Environment:
|
- Product - FileCloud Server
- Version - Any
- Platform - Any
|
Steps to Reproduce: |
- Enable ReCaptch in the FileCloud Server
- Use an API to login.
|
Error or Log Message: |
|
Defect or
Enhancement Number:
|
|
Cause: |
Currently, there is no API to authenticate with ReCaptcha. A workaround will be the steps below: |
Resolution or
Workaround:
|
Create a separate Group Policy for the API user and enable Basic Authentication. Here are the steps:
- Log in to the Admin Portal and go to Settings >> Policies
- Create a copy of the existing Global Default Policy or any policy of your preference.
- Follow the steps in this document to Enable Basic Authentication.
- Add the API user to the new policy so the policy will only be effective for the API user.
-
Once it is enabled and assigned to the API user, the API will accept credentials in the Authorization header with a Basic prefix. Credentials are created by appending username and password with a colon (e.g., user:password) and encoding that string with Base64.
For example:
Authorization: Basic YWxhZFSpbjpvcGVuc2VzZX1l
|
Notes: |
- Every API user will have their code, as it will derive from their username and password.
- The following applications can be used to encode the user:password string with base64 encoding
- Online Tools
- Programming Languages like Python, JavaScript, or NodeJS
- Command Line Tools
- Text Editor or IDEs like Notepad++
- Desktop Applications
|
Related Articles
Self-Hosted Help Desk Software by
SupportPal