Skip to content
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

WebId not retrieved correctly from ESS #17

Open
NoelDeMartin opened this issue Jan 16, 2021 · 1 comment
Open

WebId not retrieved correctly from ESS #17

NoelDeMartin opened this issue Jan 16, 2021 · 1 comment

Comments

@NoelDeMartin
Copy link

NoelDeMartin commented Jan 16, 2021

I've been testing the library with different servers and it doesn't seem to work properly with ESS. When I try to log in using https://broker.pod.inrupt.com, the webId in the session is an alphanumeric string instead of a url.

To reproduce this, you can visit ramen.noeldemartin.com, click on "try using a different authentication method" and select "Log in using the community authentication library".

If you want to see how I am using this library, everything is encapsulated in this file: CommunityAuthenticator.ts

@franzzua
Copy link

I have found a workaround:

import decode from "jose/lib/jwt/decode";
// after get session
const tokens = JSON.parse(localStorage.getItem('solidAuthFetcherUser:global'));
const webId = decode(tokens.idToken).webid;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants