Skip to content

Fragment identifier on main page URI is stripped in login process #571

Closed

Description

@timbl

e.g you open a new Chrome, go to incognito mode, and load:

https://timbl.com/timbl/2017/Solid/HighLevelIssues/index.ttl#this

You end up getting to

https://timbl.com/timbl/2017/Solid/HighLevelIssues/index.ttl

This is only a problem the first time, because of all the redirects, not later when the login state has been stored.
Seems to be a problem with eith TLS or OIDC forms of login. I thought @RubenVerborgh fixed this, at least for OIDC.

Activity

  1. RubenVerborgh commented on Sep 2, 2017

    @RubenVerborgh
    Contributor

    So the previous bug was #562 and involved a fix in the general 401 response. I'll check what's going on.

  2. self-assigned this
    on Sep 2, 2017
  3. added this to the 4.0.0 milestone on Sep 2, 2017
  4. dmitrizagidulin commented on Sep 2, 2017

    @dmitrizagidulin
    Contributor

    We fixed the server side redirect, but not for cases where the auth process is initiated from witnin a mashlib app. Will post details shortly.

  5. dmitrizagidulin commented on Sep 2, 2017

    @dmitrizagidulin
    Contributor

    The fix in #562 addressed a slightly different use case.

    In this case, however, the hash fragment is being lost - first during the oidc identity provider's authentication response (the provider overwrites the hash fragment with auth response credentials), and second when the auth client parses the response and clears the credentials from the uri.

    The upstream issues to fix are:

  6. RubenVerborgh commented on Sep 14, 2017

    @RubenVerborgh
    Contributor

    Given that nodeSolidServer/solid-auth-client#28 is done, we should be able to close this.

    I'm not sure that we need nodeSolidServer/solid-auth-client#28, as the hash is added by solid-auth-client. @dmitrizagidulin, do you think this is still necessary?

    We might need to be careful to avoid both components trying to add the same hash. It they do, we might want to lock oidc-op to 0.3.0 for now.

  7. dmitrizagidulin commented on Sep 14, 2017

    @dmitrizagidulin
    Contributor

    Yeah, i think this issue is now resolved and can be closed. And no, don't worry, the oidc-op component will not interfere w the auth client restoring the hash.

  8. RubenVerborgh commented on Sep 14, 2017

    @RubenVerborgh
    Contributor

    Can be tested after #593, and closed if successful.

  9. dan-f commented on Sep 15, 2017

    @dan-f
    Contributor

    Fixed in #593

  10. timbl commented on Mar 23, 2018

    @timbl
    ContributorAuthor

    This bug seems to have crept back in.
    It certainly currently is a problem on timbl.com, using the current head of master 1a04fae

  11. reopened this on Mar 23, 2018
  12. RubenVerborgh commented on Mar 23, 2018

    @RubenVerborgh
    Contributor

    So https://timbl.com/timbl/2017/Solid/HighLevelIssues/index.ttl#this currently redirects to https://timbl.com/api/auth/select-provider?returnToUrl=https://timbl.com/timbl/2017/Solid/HighLevelIssues/index.ttl#this.

    Note how returnToUrl is not escaped, causing this problem (and several other potential ones, related to query string for instance).

  13. added a commit that references this issue on Mar 23, 2018
  14. RubenVerborgh commented on Mar 23, 2018

    @RubenVerborgh
    Contributor

    There was a bug on the node-solid-server side, which #648 fixes. The correct URL is now passed to oidc-auth-manager, which now needs to be fixed to handle that URL correctly.

  15. dmitrizagidulin commented on Mar 23, 2018

    @dmitrizagidulin
    Contributor

    @RubenVerborgh Great work on this!

  16. RubenVerborgh commented on Mar 23, 2018

    @RubenVerborgh
    Contributor

    @dmitrizagidulin Thanks, now it's your turn in nodeSolidServer/oidc-auth-manager#17 😉

  17. added a commit that references this issue on May 4, 2018
  18. RubenVerborgh commented on Jul 19, 2018

    @RubenVerborgh
    Contributor

    Should be fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions