Quantcast
Channel: DreamFactory Forum - Latest topics
Viewing all 1524 articles
Browse latest View live

Is DF website Hacked?


Multi-Service API

$
0
0

@shawnbure wrote:

I have searched the forums and googly-oogly land without finding a good article. I would like to know if there is a great article about the following (I have seen generic articles, approaches to accomplish certain functions) in an integrated way for an app (iOS first, Android next and maybe light web app functions):

  1. iOS (and any client) oauth integration - login to facebook with the iOS library and then pass a token back to dream factory or set up a facebook oauth service and have iOS log into df / fb from there (that’s what I think)

  2. Create a custom user table for extended properties or extend the user service (not many articles how to do this that I have found except just pushing json to user/custom)

  3. Create a Simple html test app that will use client side javascript - this one is very confusing - do I use an app hosted on this server, or I use file service; how do I expose it and where do I put the files (all in gui)?

  4. Expose a file service - seems there is one by default - so I assume the advice will be, just use the default one

  5. expose a db service for a custom mysql database - that seems pretty straight forward

  6. Search endpoint - is it good to have search traffic hit a different endpoint then the data manipulation

All of these components will support an app and it seemed df allows to create individual services - so I assume that most external apps will consume services individually - but each using scripting to trade unique ID for relational data?

Posts: 1

Participants: 1

Read full topic

Trouble POSTing to DB through Remote Host

$
0
0

@jboyda wrote:

I have a mobile app that requires data to be retrieved and sent to a db. I have everything set up in my DreamFactory instance with an API key and all the rules I require. I have no problems retrieving the data through an API call, however, I cannot post data. I get a response code of 200 when I send data but nothing ever is created. If I use the API Docs to post info, it works just fine.

Thanks for any help.

Posts: 1

Participants: 1

Read full topic

Connecting with openweathermap API doe not work

$
0
0

@nimesht wrote:

I am trying to connect with weather forecast API for Pune city using DF’s Remote Service Configuration, but seems to be not working.

My remote rest URL is https://api.openweathermap.org/data/2.5/forecast?id=1259229&APPID=<app_key>

I create a Pune Weather Forecast API named as “pw”. Then in Config tab I added base URL up to …/forecast. In Config tab, I added two parameters as following:
APPID=<app_key>
id=1259229

When I request MY URL as “http://localhost:8080/api/v2/pw/” I get error saying, “This site can’t be reached, localhost refused to connect”

Please guide me so that I can create an API in DF that connects with remote API for “Weather Forecast”

Thanks

Posts: 2

Participants: 2

Read full topic

Console.log in server side script is not found in any log files

$
0
0

@nimesht wrote:

I added server side script for one of my service and added a simple console.log(“Hello Pune”) statement in “pw.pw.get.pre_process”. Then I executed my GET API using “API Docs” tab and then I tried to search for “Hello Pune” using “Search in Files” feature of TextPad but I did not find any file that contained “Hello Pune” string. Note: I am using V8 JS?

Where should I find my log text “Hello Pune?”

Posts: 1

Participants: 1

Read full topic

White label website builder

Connect to Firebird Database

$
0
0

@MrSpock wrote:

I installed the bitnami stack of dreamfactory locally on my MacBook. On the services page I added a firebird service and made the following entries in the config form:
Host: 127.0.0.1 (I also tried localhost)
Port: 3050
Database: /Users/myname/DB/VOKABELN.FDB
Username: SYSDBA
Password: masterkey

With these settings I can access the database e.g. with flamerobin
I have installed the 64 bit version of firebird 2.5.8

When I select DATA and there the firebird service, I receive the following message:

SQLSTATE[HY000]: General error: -206 Dynamic SQL Error SQL error code = -206 Column unknown RDB$RELATION_TYPE At line 2, column 59 (SQL: SELECT TRIM(RDB$RELATION_NAME) AS RDB$RELATION_NAME FROM RDB$RELATIONS
WHERE (RDB$SYSTEM_FLAG=0 OR RDB$SYSTEM_FLAG IS NULL) and (RDB$RELATION_TYPE = 1):wink:

I also tried to use the API, but I cannot access any firebird db. How can I manage to access a firebird database?

Posts: 1

Participants: 1

Read full topic

Getting API Key and passing it as a _proc/procname(parameter) value

$
0
0

@beskone wrote:

I need to take an api key used to submit a call via: /api/v2/_proc/procname?api_key=xx00xx00

and append it to the api call as a parameter so that the full API call would be:

/api/v2/_proc/procname(xx00xx00)?api_key=xx00xx00

I don’t want my customers to have to add the api_key value as the (parameter) value as well as the api_key value when calling this stored process.

I’m guessing it’s a pre-process script that will call platform.session.api_key somehow but I’m lost as to how to accomplish this.

Posts: 1

Participants: 1

Read full topic


Db limited to 1000 records, again

$
0
0

@JeffBlackwell wrote:

I’m getting records, and I appear to be limited to 1000 records per pull. I’ve changed the .env file after trying to RTFM, cleared caches, restarted machine, etc. still no joy…

Am I missing something? Version = 2.12 for the record. using the db service.

Posts: 4

Participants: 2

Read full topic

How to limit excessive login attempts to Dreamfactory user login api

$
0
0

@mrvipinkashyap wrote:

Is there a way to limit number of login attempts by any user to /user/session api?

I am trying to look for a way to limit excessive number of login attempts by any user as no limit is a serious security risk.

How can this be done in dreamfactory?

Posts: 1

Participants: 1

Read full topic

Assigning role after oauth 1st sign-in

$
0
0

@erikkurtu wrote:

I’m using an Azure Active Directory service to authenticate. When a shadow user does not already exist, one is created when a new user first logs in. I’d like to intercept that registration service to assign custom roles to users. I plan to use a separate table to assign roles.

This post was very helpful:

Now I can dynamically assign roles after a standard registration using an event script at user.register.post.post_process:

var lodash = require("lodash.min.js");
if (platform.session.app.id === 4 && platform.session.user) {
  var userObject = platform.api.get('system/user/'+platform.session.user.id+'?related=user_to_app_to_role_by_user_id');
  var userApp = lodash._.find(userObject.content.user_to_app_to_role_by_user_id, { 'app_id': 4 });
  // change role to 1 for testing
  userApp.role_id = 1;
  platform.api.patch('system/user/'+platform.session.user.id+'?related=user_to_app_to_role_by_user_id', userObject.content);
}

I assumed this would work for my Azure AD service as well, since I’m guessing it is calling that same user.register.post service at some point. But it doesn’t work. So I’m wondering where I need to add the event script in order to intercept the Azure AD user registration.

Thanks!

Posts: 1

Participants: 1

Read full topic

Dreamfactory https access

$
0
0

@tabraham wrote:

Dreamfactory access over https is not working (access over http works)
Current Setup:
-Dreamfactory docker image from bitnami at docker hub
-ssl port reassigned in docker-compose as 1443:443
-digitialocean ubuntu 16.04 server with nginx and docker
-nginx secured via letsencrypt and letsencrypt certificates stored under /etc/letsencrypt/live/

I have tried the following with no success:
docker run -v /host/path/to/certs:/container/path/to/certs -d IMAGE_ID "update-ca-certificates"
per this SO. For the host path, I have tried both with the /etc/ssl/certs as well as the /etc/letsencrypt/live/

For the container path, I have tried /var/lib/docker/volumes/…/apache/conf/bitnami/certs/ and /var/lib/docker/overlay2/…/opt/bitnami/apache/conf/bitnami/certs/

Also edited bitnami.conf virtualhost section for SSL per this link by adding appropriate domain name. The links were different in my bitnami.conf and left them as is (they were generally in the pattern of /opt/bitnami/… and not /Applications/dreamfactory-2.1.2-1/…)

I continue to get certificate error when trying to access dreamfactory over https - thoughts/inputs on resolving this much appreciated

Posts: 1

Participants: 1

Read full topic

Design and create dashboard using Dreamfactory tools

$
0
0

@Sanji85 wrote:

Hey we are using wireless sensor to interface pycom and we are using python library with to read the data from temperature sensor, following some of my doubts which I need to clear

  • Can we integrate python library with node js.
  • what tools are used easily with python library to create the dashboard with bar graph (Shows average data per day) and line graph (live streaming data of temperature sensor)
  • Create SMS alert via cross-platform messaging which share the data using GPRS 2G connection even if internet will not be available

Posts: 1

Participants: 1

Read full topic

Using system apis without X-DreamFactory-Session-Token

$
0
0

@shaju wrote:

In dreamfactory services I created a service and created a role public and allow my service to access all users.Inside that service I called system apis such as system/user in order to authenticate users and also allowed system service access to the public role. When calling the api from api docs with admin session,its working fine.In the apidocs it is attaching X-DreamFactory-Session-Token along with request.But when calling the api outside dreamfactory using postman or curl request in terminal without X-DreamFactory-Session-Token ,its not working.The issue is only admin can access dreamfactory system apis.So is any solution to access system/user without admin session.

Posts: 1

Participants: 1

Read full topic

Getting Invalid or unparsable field always

$
0
0

@Ved_Prakash wrote:

I am trying to fetch user data by email for that I am making an api call to this url api/v2/user/custom with email filter, it is not working I am always getting Invalid or, unparsable field error, my filter is set to
(email%20=%20%22abcd@gmail.com%22) see screenshot below

Can anyone help?

Thanks.

Posts: 3

Participants: 2

Read full topic


What's Flatten and How can I use it?

$
0
0

@jraiche wrote:

In the responses from a call to /_schema, I can see some flatten-related fields. I don’t see anywhere to turn this on in the configuration page. What do these options do? Can I call them on a URL like /_data/my_table/?related=*&flatten=true or something similar?

image

Is there documentation for flatten and flatten_drop_prefix somewhere?

Thanks!
Josiah

Posts: 1

Participants: 1

Read full topic

Error and showing nothing

User_lookup_by_user_id table missing

$
0
0

@erikkurtu wrote:

I’m using 2.12.0 on a Bitnami Linux VM.

I’m getting the “Unknown relationship: user_lookup_by_user_id” error when calling platform.api.get(‘system/user/’+platform.session.user.id+’?related=user_lookup_by_user_id’); from a system script.

Looking at the MySQL system database bitnami_dreamfactory, that table is missing completely.

I looked a few other similar questions in the forum. Clearing config and cache on the server did not work. I recently upgraded from 2.10, but I’ve never used the user_lookup_by_user_id table in the past so I don’t know how long this has been an issue.

How can I get this table into the database?

Posts: 1

Participants: 1

Read full topic

Cors access problem

$
0
0

@Praveen_BM_Reddy wrote:

Hi i am using df 2.12.0 V but when i try access from my application i am getting error like “Response to preflight request doesn’t pass access control check: No ‘Access-Control-Allow-Origin’ header is present on the requested resource” please give me a solution.

Posts: 1

Participants: 1

Read full topic

Allow session forever

$
0
0

@Praveen_BM_Reddy wrote:

Hi

As per the instruction in other topic i have set the “ALLOW_FOREVER_SESSION” to true and then run the “php artisan config:clear” and php artisan cache:clear command as well as also cleared the system wide cache from the admin . After that when i tried to print the environment using the “http://{my-host}/api/v2/system/environment” is still showing false. HELP

Posts: 3

Participants: 2

Read full topic

Viewing all 1524 articles
Browse latest View live