Skip to content

Add a basic join server#1

Draft
hpihkala wants to merge 1 commit intomasterfrom
joinserver
Draft

Add a basic join server#1
hpihkala wants to merge 1 commit intomasterfrom
joinserver

Conversation

@hpihkala
Copy link
Contributor

Adds a new utility joinserver.js, which DU admins can extend and run to implement custom join validation logic. Such custom logic can be used to replace the hosted app secret-based validation implemented in the centralized API.

The utility ships with a dummy validation logic hardcoded.js, which checks that the request contains one of hardcoded passphrases. It is only intended as a starting point for customization.

Copy link

@jtakalai jtakalai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've been thinking, new node.js utilities probably should be typescript going forward. I already wanted to do that with Data Union Server, but ended up "iterating faster" in the beginning with JS that I already knew. One year later I think TS would've made iterations faster.


// Call validation logic. Throws on failure.
try {
logic.validate(

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

case for TypeScript: "logic" interface

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants