Send additional parameters to custom db script

Hi all,

I’m new to auth0, so forgive me if I mix things here.

We are considering of using auth0 for our B2B2C platform.

We currently have an authentication process where a user provides his “organization” and credentials. (users are isolated per organization)

Since we already have a legacy login I thought of using the custom DB script option.

I read about hrd,

and though of sending the organization as a query param in the authorize request.

I need to send the organization name to the legacy login service as well.

For Rules, authorization’s request query parameters are made available via the “context” object.

I was wonder, is it possible to get access to those parameters in the custom DB login script?

(signature: function login(email, password, callback) {})

I will be interested in alternative solutions as well.



1 Like