Skip to content

use session cookies for android app #1841

Closed

Description

@JKawohl

Actual behaviour

android app ignores session cookies.

Expected behaviour

android should check for the session cookies so the access can be revoked fromm the server side.

Steps to reproduce

  1. create user test on server
  2. login with user on server
  3. login from android.
  4. on personal page on server look for active sessions
  5. android client is not shown in sessions overview.

Environment data

Android version: android 6

Device model:
moto g3
Stock or customized system:
cyanogenmod
ownCloud app version:
2.1.2
ownCloud server version:
9.1.2 expected to work from 9.1.0

Activity

  1. added this to the 2.2.0 milestone on Nov 24, 2016
  2. JKawohl commented on Nov 24, 2016

    @JKawohl
    ContributorAuthor

    @davivel as discussed

  3. davivel commented on Dec 5, 2016

    @davivel
    Contributor

    @kawohl , what do you mean with

    expected to work from 9.1.0?

  4. michaelstingl commented on Dec 5, 2016

    @michaelstingl
    Contributor

    @kawohl Do you have a SFDC reference? SFDC: 00006538

  5. JKawohl commented on Dec 5, 2016

    @JKawohl
    ContributorAuthor

    @davivel Sorry for the confusion. What i meant was that it you have this overview beginning from server version 9.1.
    screen shot 2016-11-24 at 09 16 09
    It would be awesome to be able to revoke the access with the session cookie.

  6. self-assigned this
    on Dec 14, 2016
  7. davivel commented on Dec 15, 2016

    @davivel
    Contributor

    @kawohl , I have a first solution.

    But, it's limited.

    With it we can see the sessions of the Android app in the list, and we can revoke them. BUT, since the app is storing the password in the device, as soon as the user makes another action in the mobile app, a new session is created.

    To get a real revocation, the user will have to change the password in the web UI and then revoke the active sessions.

    This is the same behaviour that the iOS app shows right now. I didn't test the desktop client.

    Is this good enough for the moment? To get a direct revocation of the session without changing the password we need to change a lot of things in the app, too many if we want to release before Christmas. Besides, those changes match better with the next switch to token based authentication.

  8. davivel commented on Dec 15, 2016

    @davivel
    Contributor

     @borjahawk , this is ready to test.

  9. JKawohl commented on Dec 15, 2016

    @JKawohl
    ContributorAuthor

    @davivel awesome! Thank you. This should be fine for now. I think the proper way to do this in future with the token revocation will be better. For now this shoul do it.

  10. borjahawk commented on Dec 16, 2016

    @borjahawk

    QA Validated.

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions