Authenticating with Meteor via DDP (and SRP?)

前端 未结 3 1442
-上瘾入骨i
-上瘾入骨i 2020-12-07 23:52

I can\'t seem to find any good information about how to authenticate a user using Meteor\'s DDP.

Is this possible? If so, what\'s the best way to do it? How can you

3条回答
  •  清歌不尽
    2020-12-08 00:27

    Closest I've found is this, but it's in cryptic Objective-C :-P https://github.com/boundsj/ObjectiveDDP/blob/master/Example/Example/LoginViewController.m

    The functions it calls are in C though: https://github.com/boundsj/ObjectiveDDP/blob/master/ObjectiveDDP/srp/srp.c

    And Meteor's SRP unit test is here: https://github.com/meteor/meteor/blob/master/packages/srp/srp_tests.js

    and the Meteor srp code is here: https://github.com/meteor/meteor/blob/master/packages/srp/srp.js

    You'll need at least this: https://github.com/jedp/node-srp

    Good luck. I'm trying to figure out how to do this in Java and it's more cryptic than most encryption schemes. Hardest part is figuring out how Meteor encodes the identity but that's in the Meteor srp code which you can probably lift since it's in Javascript :-)

提交回复
热议问题