On May 6, 2014, at 1:59 PM, NativeCoder <[email protected]> wrote:
>
> I am working in a nodeJS project. It doesn't access the database directly
> whereas all the required information are retrieved through Rest end points
> which is hosted in weblogic. I have a requirement to introduce another REST
> endpoint do a user validation check and validation should happen based on the
> value in a configuration file.
>
> e.g Configuration File will have a property EnableUserNameCheck=True.
>
> If the value set to true user validation happens if not it will not be taken
> place. The reason to introduce this switch is internal implementation of the
> user validation service has some external dependencies. If these services are
> down application engineer can make the switch off and allow the users to
> continue.
>
> Question :-
>
> As there are two HTTP calls involved, 1) Browser to NodeJS Server 2) NodeJs
> to RestService in WebLogic, Is it correct to have this configuration value in
> NodeJS. Then if the value is set to false there is no need to make the Rest
> Service Call at all. If I include this switch in REST Service then regardless
> of the switch is ON or OFF Service call have to be made. I want to know
> whether introducing a custom config value as above is a good practice. What
> are the disadvantages of having a switch in NodeJS side related to my context
>
I see no issue with toggling a functionality in your NodeJS app/server based on
a configuration. I cannot say more because it is not clear from your
description who's doing what. I am guessing that your NodeJS app/server will
provide a REST API for user validation, and it will implement that by checking
against the database through the WebLogic REST API.
You ask for material to go through, but it's not clear to me what sort of
material you are looking for. Are you trying to find a guide/tutorial or module
that lets you dynamically signal your running NodeJS server to turn the user
authentication switch on/off? Or something else?
Regards,
--ravi
--
Job board: http://jobs.nodejs.org/
New group rules:
https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules:
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
---
You received this message because you are subscribed to the Google Groups
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/nodejs/D85442B5-604A-4B84-A9B0-604EF4BE4A6A%40g8o.net.
For more options, visit https://groups.google.com/d/optout.