-
Notifications
You must be signed in to change notification settings - Fork 305
Accounts API v1 #339
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Accounts API v1 #339
Conversation
lib/api/accounts/signin.js
Outdated
|
|
||
| request({ method: 'OPTIONS', uri: req.body.webid }, function (err, req) { | ||
| if (err) { | ||
| res.status(406).send('Did not find a valid endpoint') |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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?
|
+1 from me, looks good. |
* implementing OIDC for new account creation * adding create user call in new * oidc in new * client is under .client * adding password
c064732 to
81778a9
Compare
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 #349OIDC integration
/api/accounts/signin/api/accounts/new: call to OIDC to create new user implementing OIDC for new account creation #349for v2 see #350
Other things to do:
/api