How to use custom adapters in a Back4app Parse Server instance?

537 views
Skip to first unread message

zsolt.mu...@gmail.com

unread,
May 1, 2018, 10:32:21 PM5/1/18
to Back4App
AFAIK there're two methods for using a custom adapter in a Parse Server:
  1. Refer to the custom adapter via it's name in PS config.
  2. Instantiate the PS with NodeJS and pass the custom adapter by reference.

Do we have access to either in a Back4app environment?
Or any other method to use a custom adapter (authentication in y case)?

nat...@back4app.com

unread,
May 2, 2018, 8:28:16 AM5/2/18
to Back4App
Hi, 

thanks for reaching out!
Could you please confirm which adapter that you want?

Regards,
Natália.

zsolt.mu...@gmail.com

unread,
May 2, 2018, 9:16:40 AM5/2/18
to Back4App
Hi Natália!

My question is not really about a specific adapter, but more like about the options for using an adapter on Back4app that is not part of the default Parse Server project (i.e. distribution).
It could be any of the published adapters for email, files, message queue, push or storage. There're quite many under various GitHub users like https://github.com/back4apphttps://github.com/parse-community or https://github.com/parse-server-modules.

Or it could be a custom auth adapter that is not yet published on npmjs.com. In fact we've written a Parse auth adapter for Auth0.com (at the company I work for) that we'd like to see if we can get working with Parse Server providers (like Back4app).
There's no problem if we have to publish this adapter on npmjs.com first.

On the other hand, we're planning another auth adapter for use with our own OAuth2 based authentication and authorization server and in this case I'm not a 100% sure whether we'll be able to publish the adapter (on Github and npmjs.com).
So my second question is whether Back4app users can deploy custom code (adapters) to their Parse Server instances without publishing them first (on npmjs.com so it can be installed via "npm install"

I'm aware of the possibility of installing NPM modules (as described here: https://help.back4app.com/hc/en-us/articles/360002038772-How-to-install-a-NPM-module-at-Back4App-), but to use an adapter this way, one would have to modify Parse Server config somehow (eg. to specify the name of the installed module that contains the adapter). Moreover this process assumes that the module is public and can be installed via "npm install". I know that npmjs.com does have private packages (for paid customers), but to share a package privately, both the owner and the recipient (who wants to install the package) must be paid npmjs.com customers.


Kind regards,
Zsolt

albert....@gmail.com

unread,
Sep 24, 2018, 3:15:43 PM9/24/18
to Back4App
I'm hoping to implement Auth0 authentication to my app (and have it tie into Back4App's authorization). Per this thread... is there a way currently to do that?

zsolt.mu...@gmail.com

unread,
Sep 25, 2018, 4:42:35 AM9/25/18
to Back4App

On Monday, September 24, 2018 at 9:15:43 PM UTC+2, albert....@gmail.com wrote:
I'm hoping to implement Auth0 authentication to my app (and have it tie into Back4App's authorization). Per this thread... is there a way currently to do that?


I don't know of any. And unfortunately my question was not answered.
Reply all
Reply to author
Forward
0 new messages