Thread overview
[vibe.d] How to create authentication system via REST interface?
Mar 15, 2017
NX
Mar 15, 2017
Suliman
Mar 15, 2017
Ali Çehreli
Mar 15, 2017
aberba
March 15, 2017
I'm trying to understand how to create some json-rest api that would return data (in json format) related to that specific logged in user. I see the documentation covers these but I'm totally new to vibe.d so can't quite figure out putting these two things together and make them work. Some easy to follow sample would be incredibly helpful, though any help is appreciated.
March 15, 2017
On Wednesday, 15 March 2017 at 13:24:07 UTC, NX wrote:
> I'm trying to understand how to create some json-rest api that would return data (in json format) related to that specific logged in user. I see the documentation covers these but I'm totally new to vibe.d so can't quite figure out putting these two things together and make them work. Some easy to follow sample would be incredibly helpful, though any help is appreciated.

You need to look at JWT. There is few good video on youtube about it and packed on code.dlang.org

I did not seen ready to use examples :(

If will need implement client side look at Vue.js it is very best of existen JS frameworks.
March 15, 2017
On Wednesday, 15 March 2017 at 13:24:07 UTC, NX wrote:
> I'm trying to understand how to create some json-rest api that would return data (in json format) related to that specific logged in user. I see the documentation covers these but I'm totally new to vibe.d so can't quite figure out putting these two things together and make them work. Some easy to follow sample would be incredibly helpful, though any help is appreciated.

The "examples" folder in the github repo has demo on rest api. Along with the vibe.d api reference, you should get a badic service working. Authentication can be tricky but you can append a query with some api key for each request to authenticate.
March 15, 2017
On 03/15/2017 07:06 AM, Suliman wrote:

> You need to look at JWT.

WekaIO uses jwtd, with minor improvements on it (improved error handling and code coverage):

  https://github.com/weka-io/jwtd

Ali