Search found 16 matches

by zaff
Mon Jun 16, 2025 4:55 pm
Forum: Plugins & patches
Topic: API - Authentication API
Replies: 12
Views: 596

Re: API - Authentication API

Never mind... I shall figure out myself.
by zaff
Mon Jun 16, 2025 4:53 pm
Forum: Plugins & patches
Topic: API - Authentication API
Replies: 12
Views: 596

Re: API - Authentication API

What should be the api end point ?
by zaff
Mon Jun 16, 2025 4:24 am
Forum: Plugins & patches
Topic: API - Authentication API
Replies: 12
Views: 596

Re: API - Authentication API

Thanks Alfa24. The entire code with response is provided below - As I said earlier if I remove ""X-Authorization: FormaLMS $auth_code"" section (From header) and the section of "// Replace with your actual API credentials" from the code below- it automatically releases tokens with success, but thats ...
by zaff
Sun Jun 15, 2025 7:30 pm
Forum: Plugins & patches
Topic: API - Authentication API
Replies: 12
Views: 596

Re: API - Authentication API

My end point is https://mydomain.com/api/rest.php?q=/api/auth/authenticate This end point takes me to the server code that produces tokens. I am wondering am I missing the right endpoint that should take me to the code (you shared from api/lib/lib.api.php). The documentation doesn't mention the end ...
by zaff
Sun Jun 15, 2025 5:24 pm
Forum: Plugins & patches
Topic: API - Authentication API
Replies: 12
Views: 596

Re: API - Authentication API

Forma version is above 3.0
by zaff
Sun Jun 15, 2025 5:24 pm
Forum: Plugins & patches
Topic: API - Authentication API
Replies: 12
Views: 596

Re: API - Authentication API

I have seen the code earlier too in code base i.e. - $auth = base64_decode(str_replace('FormaLMS ', '', $_SERVER['HTTP_X_AUTHORIZATION'])); $params_to_check = $this->getValuesFromParams($params); $hash_sha1 = sha1(implode(',', $params_to_check) . ',' . FormaLms\lib\Get::sett('rest_auth_api_secret ...
by zaff
Sun Jun 15, 2025 8:19 am
Forum: Plugins & patches
Topic: API - Authentication API
Replies: 12
Views: 596

API - Authentication API

Hi, I have been following the API documentation. Now there are two sections for authentication. The first talks about 1. Authentication API - For Restful API, use key and secret, and develop X-authorization. I changed API settings to choose the secret and key auth method in the admin section for ...
by zaff
Thu Oct 10, 2024 11:18 am
Forum: Installation and configuration
Topic: Unable to use API using POSTMAN - no XML response
Replies: 3
Views: 4939

Re: Unable to use API using POSTMAN - no XML response

sorry, It was meant to be POST...but i get the same response ...(rather no response)
by zaff
Thu Oct 10, 2024 3:04 am
Forum: Installation and configuration
Topic: Unable to use API using POSTMAN - no XML response
Replies: 3
Views: 4939

Unable to use API using POSTMAN - no XML response

Hi I am using Postman to test the authentication API. Not sure if I am doing the right thing. I do get 200 OK but don't get XML response back from the server. I have attached the details below with the screenshot. I converted this - into a prescript code [in the screenshot] $codice_sha1 = strtolower ...
by zaff
Thu Jun 20, 2024 5:35 pm
Forum: Administration Management
Topic: Email not getting sent using SMTP
Replies: 12
Views: 16344

Re: Email not getting sent using SMTP

Different issues, same cause: SSL connection. Is your instance secured? Thanks for your support ! I googled bit and changed ssl option in SMTP settings page of Forma lms and changed to "tls" as brevo.com uses 587 as port number (as suggested from one of the google community links). However, what ...