Bug 506474 - OAuth authorization is not remembered
Summary: OAuth authorization is not remembered
Status: CLOSED MOVED
Alias: None
Product: Community
Classification: Eclipse Foundation
Component: OpenID Connect (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows NT
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Christopher Guindon CLA
QA Contact: Christopher Guindon CLA
URL:
Whiteboard: stalebug
Keywords:
: 520643 (view as bug list)
Depends on:
Blocks: 493458
  Show dependency tree
 
Reported: 2016-10-24 21:19 EDT by Pascal Rapicault CLA
Modified: 2021-12-23 06:43 EST (History)
7 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Pascal Rapicault CLA 2016-10-24 21:19:12 EDT
Every time I log into tuleap using openId, I get prompted for the authorization and I would not expect this since I've already authorized Tuleap to get access to the necessary information. Here is the message I see:

This application will be able to:

    Know who you are on accounts.eclipse.org.
Comment 1 Christopher Guindon CLA 2016-10-26 10:18:50 EDT
Hi Pascal,

is it possible the issue is on tuleap side of things? You should get a refresh token with your access token and that should allow tuleap to fetch a new access token once the original is expired.

This should remove the need to redirect the user to accounts.eclipse.org to authorize tuleap?
Comment 2 Pascal Rapicault CLA 2016-10-26 15:05:33 EDT
Hi Chris, I'm not familiar with the implementation so I've cc'ed Manuel to insights from the Tuleap dev team.
Comment 3 Manuel Vacelet CLA 2016-10-27 03:10:44 EDT
I CC'd the developer who dealt with implementation Tuleap side for more details
Comment 4 Thomas Gerbet CLA 2016-10-31 06:37:43 EDT
Hello,

It is not possible for Tuleap to use a refresh token to get a new access token. When the user is redirected to accounts.eclipse.org it means that Tuleap does not know who the user is and without knowing which user try to authenticate it is not possible to select the corresponding refresh token.

To me, it seems that the OAuth2 server used by Eclipse does not remember which rights has been granted to an application. At least as a user I not able to find the administration panel allowing me to revoke the permissions granted to an app in my user's settings.
Comment 5 Christopher Guindon CLA 2016-11-02 09:46:30 EDT
(In reply to Thomas Gerbet from comment #4)
> Hello,
> 
> It is not possible for Tuleap to use a refresh token to get a new access
> token. When the user is redirected to accounts.eclipse.org it means that
> Tuleap does not know who the user is and without knowing which user try to
> authenticate it is not possible to select the corresponding refresh token.
> 
> To me, it seems that the OAuth2 server used by Eclipse does not remember
> which rights has been granted to an application. At least as a user I not
> able to find the administration panel allowing me to revoke the permissions
> granted to an app in my user's settings.

You are correct because the session for the user is expired on tuleap.

I did a quick search in the issue queue for the oauth2_server drupal module and it looks like this feature was requested but never completed:

https://www.drupal.org/node/2460805
Comment 6 Johannes Dorn CLA 2017-08-08 03:49:47 EDT
*** Bug 520643 has been marked as a duplicate of this bug. ***
Comment 7 Eclipse Genie CLA 2021-10-06 10:14:27 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.
Comment 8 Frederic Gurr CLA 2021-12-23 06:43:02 EST
This issue has been migrated to https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/issues/278.