Skip to content
This repository was archived by the owner on May 25, 2021. It is now read-only.

Fixed WebID login bug - #210

Merged
james-martin-jd merged 3 commits into
developfrom
fix/webid-login
Apr 1, 2020
Merged

Fixed WebID login bug#210
james-martin-jd merged 3 commits into
developfrom
fix/webid-login

Conversation

@NSeydoux

@NSeydoux NSeydoux commented Apr 1, 2020

Copy link
Copy Markdown
Collaborator

The issue was that the login page made the assumption that the WebID was hosted on the same origin as the Identity Provider, which is not necessarily the case. This fix adds a check on the solid:oidcIssuer predicate in the Profile Document to get the Identity Provider address, while remaining backwards compatible by also testing the presence of the IdP at the WebID origin.

The issue was that the login page made the assumption that the WebID was hosted on the same origin as the Identity Provider, which is not necessarily the case. This fix adds a check on the `solid:oidcIssuer` predicate in the Profile Document to get the Identity Provider address, while remaining backwards compatible by also testing the presence of the IdP at the WebID origin.

@Vinnl Vinnl left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

There were two stray console.logs still left in. More importantly, unless I'm misunderstanding the code, it seems this is always firing off two HTTP requests when sometimes one would do? If not, it looks good to me.

Comment thread src/lib/utils/solidFetch.js Outdated
Comment thread src/lib/utils/solidFetch.js Outdated
Comment thread src/lib/utils/solidFetch.js
NSeydoux and others added 2 commits April 1, 2020 11:19
@james-martin-jd
james-martin-jd merged commit a236bc6 into develop Apr 1, 2020
@james-martin-jd
james-martin-jd deleted the fix/webid-login branch April 1, 2020 17:08
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants