You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The auth.logout() is not sending the token to the Solid server which we need for identifying the user for proper logout.
The code in question is here:
exportasyncfunctionlogout(storage: AsyncStorage,fetch: Function): Promise<void>{constrp=awaitgetStoredRp(storage)if(rp){try{// First log out from the IDPawaitrp.logout()// Then, log out from the RPtry{awaitfetch('/.well-known/solid/logout',{credentials: 'include'})}catch(e){// Ignore errors for when we are not on a Solid pod// But tell users it is harmless because they will see the GET failure in the consoleconsole.info("Couldn't find /.well-known/solid/logout, this is harmless.")}}catch(err){console.warn('Error logging out of the WebID-OIDC session')console.error(err)}}}
the rp.logout() does hit the IDP correctly, but without credentials, so the next call in this code to then use .well-known/solid/logout is not called as the IDP call returns a 401.
Any idea why rp.logout() is not including credentials?
The text was updated successfully, but these errors were encountered:
gibsonf1
changed the title
auth.logout() does not send token for proper logout from RP
auth.logout() does not send token for proper logout from IDP
Sep 13, 2020
The auth.logout() is not sending the token to the Solid server which we need for identifying the user for proper logout.
The code in question is here:
the rp.logout() does hit the IDP correctly, but without credentials, so the next call in this code to then use .well-known/solid/logout is not called as the IDP call returns a 401.
Any idea why rp.logout() is not including credentials?
The text was updated successfully, but these errors were encountered: