aaronpk / indielogin.com

Sign in with your domain name
https://indielogin.com
MIT License
155 stars 25 forks source link

Can't login on clawfire.net using twitter #71

Closed clawfire closed 3 years ago

clawfire commented 3 years ago

Capture d’écran 2021-01-01 à 21 54 06

jalcine commented 3 years ago

Do you mind linking to your Twitter profile? Your site doesn't seem to highlight any reference to it (or any Microformats for that matter) https://xray.p3k.app/parse?url=https%3A%2F%2Fthibaultmilan.com%2F&pretty=true

clawfire commented 3 years ago

Well it’s for clawfire.net (as you can see) and my twitter handle is @clawfire

jalcine commented 3 years ago

I'd recommend reading over https://indielogin.com/setup (namely https://indielogin.com/setup#twitter) to make sure your site's ready for IndieAuth.

clawfire commented 3 years ago

Well I did. And my link is just right here.

Capture d’écran 2021-01-01 à 22 46 21

Ryuno-Ki commented 3 years ago

Hm, my structured data parser extension cannot detect it, although the markup looks valid :eyes: (On a side note, you should add additional rel attributes to secure your site for target="_blank" links).

clawfire commented 3 years ago

Thanks for the link about the target=_"blank" security issues. I wasn't aware of it. I'll have a good amount of work on that template 😁

Zegnat commented 3 years ago

Wonder if there was some temporary hick-up in the indielogin.com cache or something else.

If I go to login using https://clawfire.net/ it correctly shows a Twitter button. I am then able to click it and authorize the app for Twitter access. Of course I end up on a screen telling me that I am "logged in to Twitter as @martijnvdven but your website links to @clawfire", which is exactly the error I would expect as I am not allowed to identify as clawfire.net.

But I assume if I were logged in with the correct Twitter account, it would have worked. Are you still getting errors, @clawfire? If yes, which steps are you able to take in the flow before an error comes up?

clawfire commented 3 years ago

I'm going to login using https://clawfire.net, it correctly shows a Twitter button (as well as GitHub & email). I am able to click it and authorize the app for Twitter access. Then I'm going back to indielogin and have the following error message

Your Twitter profile linked to https://clawfire.net/ but we were expecting to see https://clawfire.net/. Make sure you link to https://clawfire.net/ in your Twitter profile.

Zegnat commented 3 years ago

Super weird, I see no obvious problems with your setup, but not with the code either. Hopefully @aaronpk will be able to see something in the logs, I think it logs the values it tries to match on.

aaronpk commented 3 years ago

I found some inconsistencies which I believe were the reason for the kind of strange error message at the top of this thread. I just changed things around, so try again and let me know if it works now. I'm thinking the original cause of this was because you entered http://clawfire.net rather than https://clawfire.net but that shouldn't matter anymore, it should be able to handle that now.

clawfire commented 3 years ago

Hey It works 😃 Thanks !