Skip to content

Conversation

@nicola
Copy link
Contributor

@nicolanicola commented May 10, 2016

List of APIs we are planning on implementing

v1

LDNODE

  • /api/accounts/signin: 302 to oidc if possible
  • /api/accounts/signout: removes the session
  • /api/accounts/recover: generates a token and contacts the user sending the token
  • /api/accounts/validateToken: user can claim a token, gets the cookies and gets redirected to /
  • /api/accounts/new: creates a new account on LDP and create it under OIDC implementing OIDC for new account creation #349

OIDC integration

for v2 see #350

Other things to do:


request({method: 'OPTIONS', uri: req.body.webid }, function (err, req){
if (err){
res.status(406).send('Did not find a valid endpoint')
Copy link
Contributor

Choose a reason for hiding this comment

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

Why 406 here? I thought that error only dealt with Accept headers & content types?

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

if you send a bad URI, you should know about it

Copy link
Contributor

Choose a reason for hiding this comment

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

I agree. But this should be a 400 error, not 406.

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

even for the 409 happening later?

@nicolanicola changed the title Accounts APIAccounts API v1May 12, 2016
@dmitrizagidulin
Copy link
Contributor

+1 from me, looks good.

@deiudeiu merged commit fc424c6 into masterMay 12, 2016
@dmitrizagidulindmitrizagidulin deleted the sign-in-out branch December 7, 2016 15:57
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@nicola@dmitrizagidulin@deiu