-
Notifications
You must be signed in to change notification settings - Fork 12
AssertionError: Missing scope parameter in authentication request in solid/oidc-rp #15
Comments
Is it fixed when you pass in "scope" from solid-cli? Try passing in "openid webid" as scope. |
@jaxoncreed Yes, after passing Does that mean we fix it here? IMHO even if we fix it here, @solid/oidc-rp should deeply merge the defaults when creating a |
I am getting this too, it breaks a lot of things. I'll keep watching here and bump the solid-auth-cli version of solid-cli when this issue is resolved. |
Problem was on my end. I no longer get this error, bumping solid-auth-cli now to use the new solid-cli. |
@jeff-zucker Good to know! Thanks! |
The problem seems not to have been resolved. It seems unclear from the changes if |
Hi!
But as a newbie to solid I don't really have a clue how to "pass in the scope from solid-cli". |
@FlorSanders What you need to do is add a IMHO, the upstream library @solid/oidc-rp should set this by default if the user does not put it in or it should properly instruct the user to specify this property. Trouble is @solid/oidc-rp itself has been deprecated in favour of interop-alliance/oidc-rp. See issue #16. However, none of the authors here are coming forward to do a code review, if one of us was to patch this (like I did for #12) which is the original cause for this problem. This transitively also affects which upstream library we file an issue with. |
@CxRes Thanks so much, got it working!
I went to take a look in that source code and it seems to me like they're doing this (here) but only if no defaults object is given at all.
[Off-topic] All due respect to the developers of this amazing set of technologies, but it feels like some of these things are patched together (since e.g. @solid/cli has an explicit warning not to depend on it). I just suppose these tools are still in its infancy for the most parts making them quite tricky to use by the average developer at times. Anyway, thanks a lot for helping out! |
Could I ask what OS and node version this bug appears in? I am on Linux using node 13.6.0 and I can not reproduce the bug. Is it windows specific? |
Aha, I have some new information. This error only occurs for me if I specify a subdomain in the login IDP. In other words, I get the Assertion error if I try to login using "https://jeffzucker.inrupt.net" as the IDP but NOT if I login using "https://inrupt.net" as the IDP. |
I can directly reproduce the error like this:
I initially bumped into it using solid-auth-cli. I am not using a subdomain within IDP and I am on Linux with node 13.13.0 |
@jeff-zucker I am on Windows 10 (But again I do not understand why such an error would occur on Windows for this library). I get this error even when I do NOT specify a sub-domain! |
@FlorSanders I am facing the same issue and editing the source code in node_modules doesn't have any effect - i am getting the same error.
Can you explain what exactly you did with the link you provided? (i.e) which step(s) you exactly followed? |
@CxRes What should I do after adding the scope variable? It seems that the change is not reflecting. |
@Leoudayan I have fixed this in solid-auth-cli, you do not need to fix solid-cli |
Well, not fixed it, worked around it until it is fixed in oidc-rp or solid-cli. |
I already prepared a PR as a fix, perhaps @jaxoncreed can take a look at #18 |
@Leoudayan Directly editing the code in my node_modules folder didn't seem to help either, I pretty much followed that tutorial step by step.
|
@FlorSanders thanks for your reply. @jeff-zucker just fixed and its all working fine now :) |
Just to clarify again : I made a work-around in solid-auth-cli which implements the PR that @angelo-v provided for solid-cli within solid-auth-cli and this DOES NOT fix solid-cli or oidc-rp which remain broken. |
This seems to be a consequence of PR #12 that I had pushed couple of days ago. There have been more than a few breaking changes in @solid/oidc-rp. However, roll back is not preferable either because the older crypto library is now deprecated.
I get the following error when trying to login with solid-auth-cli (there was no error with the previous version):
I am not sure if the bug itself is in solid-cli or in oidc-rp.
defaults
argument toRelyingParty
class does not have aauthenticate.scope
property ordefaults
are not being deeply merged in theRelyingParty
constructor. Either way the property is missing...The text was updated successfully, but these errors were encountered: