-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
implement secured API #170
Comments
One does not simply tell cloudy to secure the api |
just do it |
@jhuesser alles klar |
ehhhh |
To implement authentication and authorization for the API using the auth.php file, you would need to do the following: First, you would need to include the auth.php file in your API script, using the require_once function: [email protected] Copy code Copy code
else { Copy code
if (!isset($_SESSION['username']) || !verifyToken($config, $_SESSION['username'], getTokenFromRequest())) { Copy code Once you have verified that the user is authenticated, you can then implement the logic for the API endpoint. For example, you might use the I hope this helps |
The application should handle a secured API.
The text was updated successfully, but these errors were encountered: