Solid auth not stored locally
I'm trying to use <solid-auth>
with OIDC servers that are not implemented by DjangoLDP.
<sib-auth>
<sib-auth-provider
data-authority="https://solidcommunity.net"
data-id="solid-authority"
data-client-name="Experimentation"
/>
</sib-auth>
<button onclick="document.querySelector('sib-auth').login()">Connect</button>
When I try this, the authentication works well, :
When I have accepted the connexion, I get redirected to my client with this access token :
{
"iss": "https://solidcommunity.net",
"aud": [
"c407c78bd662ff640e70a6a009c886b4"
],
"sub": "https://fabien4vo.solidcommunity.net/profile/card#me",
"exp": 1607595442,
"iat": 1606385842,
"jti": "24d5dc6dbfdd0492",
"scope": "openid"
}
But is is not stored in local storage and the following requests made with the store do not use it.
If I use the original solid-auth-client
code, it's working well :
<button onclick="login()">Connect</button>
<script src="https://solid.github.io/solid-auth-client/dist/solid-auth-client.bundle.js"></script>
<script>
async function login() {
const session = await solid.auth.currentSession();
if (!session)
await SolidAuthClient.login('https://solidcommunity.net');
else
alert(`Logged in as ${session.webId}`);
}
</script>