openjournals / brief-ideas

The Journal of Brief Ideas
http://beta.briefideas.org
MIT License
93 stars 10 forks source link

ORCID error #177

Open Flybell opened 4 years ago

Flybell commented 4 years ago

Attempting to log in to ORCID through the main page returns the following error:

Redirect URI doesn't match your registered redirect URIs.

arfon commented 4 years ago

What URL are you logging in from? I just verified that logging in from http://beta.briefideas.org/ works.

LanaSina commented 4 years ago

Same problem here! the "new idea" link give a 404 on Orcid.

physicsdavid commented 4 years ago

I can't replicate the problem either. It seems to work fine for me. Could you provide a little more information about exactly what you are doing? Do you have an ORCID account already? As @arfon asked, what URL are you logging in from and which link?

LanaSina commented 4 years ago

I happens when you are not logged in and you click "New Idea". Personally I was looking for a "login" option in the navigation bar and "New Idea" seemed like the right way to get to a login page, but then I realised the actual link for logging in is not in the top bar.

arfon commented 4 years ago

What happens if you click the 'Sign in with ORCID' on the right hand side of the page?

Screen_Shot_2020-02-25_at_5_41_42_AM
arfon commented 4 years ago

One issue we've had in the past is when users don't have a name on their ORCID. Can you check that your name is listed on your ORCID profile and is available for others to see?

LanaSina commented 4 years ago

Sorry if my 2 previous messages were confusing.

Path 1: Click New Idea : Error message "Redirect URI doesn't match your registered redirect URIs."

Alternative path 2: Sign in with ORCID: Sign in page appears. I can sign in, then I can click "New Idea".

The issue is that people look for a "Login" button in the top navigation bar, and since there is none, we try clicking "New Idea", which returns an unclear error with no indication of what to do do next.

The side "Sign in with ORCID" link is not easily discoverable, and since its design is different from the rest of the website, it's not clear what is the relationship between that and the actual creation of a new idea. The design and placement makes it look like an ad, which is part of the reason we automatically ignore it. (It's likely a mistake that most users would make) If there was a "sign in" button in the navigation bar, or if "New Idea" linked to the sign in page, that would solve the confusion.

arfon commented 4 years ago

Click New Idea : Error message "Redirect URI doesn't match your registered redirect URIs."

Thanks the additional info @LanaSina. For this scenario, can you please tell me what URL is in your browser just before you click the New idea button?

LanaSina commented 4 years ago

Unfortunately the error does not come up anymore, now that I have an account. It seems to be only reproducible from a brand new user...

LanaSina commented 4 years ago

Hi, I don't know if the error is back or if its a new one, but I got 404 not found after clicking on the sign in button shown here https://github.com/openjournals/brief-ideas/issues/177#issuecomment-590802888

The URL just before I click the button: https://beta.briefideas.org/trending The URL displayed as I hover the button: https://beta.briefideas.org/auth/orcid The URL of the error page: https://orcid.org/oauth/authorize?client_id=0000-0002-3957-2474&redirect_uri=https%3A%2F%2Fbeta.briefideas.org%2Fauth%2Forcid%2Fcallback&response_type=code&scope=%2Fauthenticate&show_login=true&state=5ad108b02c3f8b8ef4605f457265f6a92d8b96426a5cebe2

Screen Shot 2020-03-12 at 21 06 21