-
Notifications
You must be signed in to change notification settings - Fork 0
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
switch to webfinger.js #8
Conversation
@@ -34,7 +34,7 @@ function getClientId(platform) { | |||
} | |||
} | |||
ret.oauth = function(platform, userAddress, scopes) { | |||
if (platform !== 'remotestorage') { | |||
if (platform !== 'remotestorage' && platform !== 'remotestorage-allow-insecure-webfinger') { |
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.
this change is actually unrelated, btw.
// (typeof p.idx === 'object') && | ||
// (typeof p.idx.links == 'object') && | ||
// (Array.isArray(p.idx.links.remotestorage)) | ||
for (var i=0; i< p.idx.links.remotestorage.length; i++) { |
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.
Do you need to loop over this? You'll constantly overwrite the variables anyway. May as well just access the first record...
looks good to me! |
Added a PR to webfinger.js to make it the way I would want it to be :) |
Cleaning up PRs that are > 1 year old. |
I got it working, but I'm not sure whether src/oauth.js has actually become in any way simpler by using this...