使用feathersjs进行简单的rest调用进行身份validation

我知道我可以使用羽毛JavaScript客户端库检索安全令牌。 但是我想用C#来连接到一个feathersjs后端。 是否可以使用简单的rest调用来检索安全令牌。 我知道有一个/ auth /本地端点,但我不知道如何直接使用它。

这应该从控制台工作:

curl -X POST 'http://localhost:3030/auth/local' -H 'Content-Type: application/json' --data-binary '{ "email": "<EMAIL>", "password": "<PASSWORD>" }' 

feathersJS文档中不太清楚的一点是,default.json / production.json文件中的configuration实际上为“auth”对象中的每个字段创build了auth服务。 例如与configuration包含

  "auth": { "idField": "id", "token": { "secret": {...}, "local": {}, "facebook": { "clientID": "...", "clientSecret": "...", "profileFields": ["id", "name", "gender", "email", "picture.type(square).height(128).width(128)"], "permissions": { "scope": ["public_profile","email"] } }, "google": { "clientID": "]...", "clientSecret": "...", "permissions": { "scope": ["profile"] } } } 

您将获得免费的API端点

  /auth/local /auth/token /auth/facebook/token /auth/google/token 

你可以从任何客户端(networking,手机,洗衣机)

好的,我必须发布包含电子邮件,密码和本地types的Json对象到/ auth / local端点。