These are chat archives for deployd/deployd

17th
Nov 2016
qalqi
@qalqi
Nov 17 2016 06:46
Great job with deployd. Used dpd-openshift-start-script and deployd to host http://natured.us on Openshift
how to create a private& password protected folder using dpd?
hammadfauz
@hammadfauz
Nov 17 2016 07:09
dpd-fileupload might be what you need.
qalqi
@qalqi
Nov 17 2016 07:29
thanks a lot
little help with dpd-passport also please!
User-Collection named users with at least these custom fields:
{
"socialAccount": {
"name": "socialAccount",
"type": "string",
"typeLabel": "string",
"required": false,
"id": "socialAccount",
"order": 0
} ??
how to add these custom fields
vpxavier
@vpxavier
Nov 17 2016 12:41
hello qalqi
qalqi
@qalqi
Nov 17 2016 12:41
hi
@vpxavier hi
vpxavier
@vpxavier
Nov 17 2016 12:42
in the dashboard, go to the upper left and add user-collection
did you already install dpd-passport?
qalqi
@qalqi
Nov 17 2016 12:42
added
and instlled dpd-passport
vpxavier
@vpxavier
Nov 17 2016 12:42
ok
qalqi
@qalqi
Nov 17 2016 12:42
configured twitter and google
vpxavier
@vpxavier
Nov 17 2016 12:42
now go to the users collection
qalqi
@qalqi
Nov 17 2016 12:43
added socialaccount socialaccountId profile name also
vpxavier
@vpxavier
Nov 17 2016 12:43
and add a field called socialAccount of type string
ok so you already added the custom fields?
qalqi
@qalqi
Nov 17 2016 12:44
yep
vpxavier
@vpxavier
Nov 17 2016 12:44
then you don't need my help ^^
qalqi
@qalqi
Nov 17 2016 12:44
after that post request to /auth/login fails
put request also fals
fails*
vpxavier
@vpxavier
Nov 17 2016 12:45
ok, did you installed dashboard on a domain or only locally?
qalqi
@qalqi
Nov 17 2016 12:45
in domain as well.. passport for now is just local
dpd passport doesnt work locally?
vpxavier
@vpxavier
Nov 17 2016 12:47
I think, but I am not sure, as I'm currently testing dpd-passport too, that you can't test twitter or google locally as you twitter and google api keys are only available for domains
but you can test dpd-passport locally if you check the "enable locally" checkbox and try /auth/login
this has to be tested using the standard user and password login method in a form
qalqi
@qalqi
Nov 17 2016 12:48
Enable locally checkbox where?
vpxavier
@vpxavier
Nov 17 2016 12:48
a moment, I am checking
qalqi
@qalqi
Nov 17 2016 12:48
I am using Postman tool to check
AllowLocal enabled too
vpxavier
@vpxavier
Nov 17 2016 12:50
yes that's it
qalqi
@qalqi
Nov 17 2016 12:53
locally I am trying to login using Postman tool.. its crashing the site..
vpxavier
@vpxavier
Nov 17 2016 12:58
I don't know postman tool
but what do you mean by it's crashing?
qalqi
@qalqi
Nov 17 2016 13:00
{
"message": "Cannot read property 'filter' of undefined",
"status": 500
}
vpxavier
@vpxavier
Nov 17 2016 13:06
blob
blob
qalqi
@qalqi
Nov 17 2016 13:09
its working?
vpxavier
@vpxavier
Nov 17 2016 13:09
make sure you have the same in your dashboard
mind the lower and uppercases
qalqi
@qalqi
Nov 17 2016 13:11
i have exactly same
Screen Shot 2016-11-17 at 6.41.38 PM.png
vpxavier
@vpxavier
Nov 17 2016 13:14
do you see auth at the upper left?
qalqi
@qalqi
Nov 17 2016 13:18
yep
vpxavier
@vpxavier
Nov 17 2016 13:18
can you show the content?
qalqi
@qalqi
Nov 17 2016 13:19
Screen Shot 2016-11-17 at 6.49.24 PM.png
vpxavier
@vpxavier
Nov 17 2016 13:20
did you define a base url?
qalqi
@qalqi
Nov 17 2016 13:21
left to default
vpxavier
@vpxavier
Nov 17 2016 13:22
the baseurl and redirecturl are important
qalqi
@qalqi
Nov 17 2016 13:27
ok
Basic authentication also failing
vpxavier
@vpxavier
Nov 17 2016 13:33
ok. First, if I'm right (I'm a noobie for dpd-passport and deployd), as you user has no username and password, /auth/login could not work
qalqi
@qalqi
Nov 17 2016 13:34
I have manually created one username - test and password - testadmin
vpxavier
@vpxavier
Nov 17 2016 13:35
then /auth/google is not working. Did you encode the googleclientid and googleclientsecret?
your baseurl should be http://www.natured.us/
qalqi
@qalqi
Nov 17 2016 13:37
yep
vpxavier
@vpxavier
Nov 17 2016 13:38
normally http://www.natured.us/auth/google should show a google login form
qalqi
@qalqi
Nov 17 2016 13:38
i see
vpxavier
@vpxavier
Nov 17 2016 13:39
but it does not show it says 401 bad credentials which is the case for all dpd-passport errors for security reasons
so, locally, encode the baseurl, allow local, encode googleclientid and googleclientsecret
qalqi
@qalqi
Nov 17 2016 13:40
http://www.natured.us/auth/google gives different error now
vpxavier
@vpxavier
Nov 17 2016 13:41
what did you change?
qalqi
@qalqi
Nov 17 2016 13:42
updated the BASEURL to http://www.natured.us
vpxavier
@vpxavier
Nov 17 2016 13:42
you forgot the ending /
qalqi
@qalqi
Nov 17 2016 13:43
with /
vpxavier
@vpxavier
Nov 17 2016 13:44
and locally?
qalqi
@qalqi
Nov 17 2016 13:44
left blank
vpxavier
@vpxavier
Nov 17 2016 13:45
you are not using same db locally and on the domain?
qalqi
@qalqi
Nov 17 2016 13:45
using same db
vpxavier
@vpxavier
Nov 17 2016 13:46
then how can it be that locally it is blank?
qalqi
@qalqi
Nov 17 2016 13:46
I am also newbie to deployed.. Otherwise I have written lot of frontend code in angular.. I am very much impressed with deployed simplicity in creation of APIs
I have just added BASEURL to remote
after you suggested
vpxavier
@vpxavier
Nov 17 2016 13:49
I guess the first thing you should make sure of is that you can login locally, without dpd-passport
then do the same remotely
once it is working without dpd-passport
add dpd-passport
qalqi
@qalqi
Nov 17 2016 13:50
how can I login with dpd-passport?
How can I login without dpd-passport?
vpxavier
@vpxavier
Nov 17 2016 13:50
did you fill in the users field?
qalqi
@qalqi
Nov 17 2016 13:51
yep
vpxavier
@vpxavier
Nov 17 2016 13:51
usersCollection sorry
qalqi
@qalqi
Nov 17 2016 13:51
Yep.. created test and testadmin
vpxavier
@vpxavier
Nov 17 2016 13:51
dpd has built-in users management
qalqi
@qalqi
Nov 17 2016 13:51
at which URL ?
vpxavier
@vpxavier
Nov 17 2016 13:51
to login in, you have to use a standard form
using php, javascript or whatever
qalqi
@qalqi
Nov 17 2016 13:52
and should post/put to URL ?
qalqi
@qalqi
Nov 17 2016 13:53
great
qalqi
@qalqi
Nov 17 2016 15:29
500TypeError: Cannot read property 'filter' of undefined
This is very new issue
vpxavier
@vpxavier
Nov 17 2016 15:32
make sure you are using recent npm and node version
and check your dependencies
qalqi
@qalqi
Nov 17 2016 15:39
I have checked dependencies and installed node_modules
@vpxavier is it working for you?
dpd-passport
vpxavier
@vpxavier
Nov 17 2016 17:17
@qalqi I can connect using google, I just have a redirection problem as it does not redirect to the redirectURL when connected.