Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Application passwords #1714

Closed
labkode opened this issue May 19, 2021 · 3 comments · Fixed by #1719
Closed

Application passwords #1714

labkode opened this issue May 19, 2021 · 3 comments · Fixed by #1719
Assignees

Comments

@labkode
Copy link
Member

labkode commented May 19, 2021

As a user I want to generate a unique authentication token to act on my behalf with limited scope.
This token can be used in 3rd party applications or in case primary user credentials cannot be submitted to other parties.
Having such token allows for device-level controls. An example of my mail provider:

Screenshot 2021-05-19 at 08 47 07

To achieve this functionality we need two tasks:

  1. Implement an Auth Provider that consumes these tokens and gives back an authentication token on behalf of the user that generated it
  2. A new API for create these tokens

@gmgigi96 will work on 1) and @ishank011 on 2).

@ishank011
Copy link
Contributor

@labkode @gmgigi96 token minting and dismantling is handled in the gateway itself, so we don't need to delegate this to the auth provider. We just need to check that a user is present in the context and generate the token, else return an error.

I've created a PR to CS3APIs cs3org/cs3apis#127, will coordinate with @gmgigi96 on the changes in reva.

@ishank011
Copy link
Contributor

To start with, we can have the following scopes for applications:

  • resource (resourceInfo; role) (we can reuse the code in the current publicshare scope)
  • share (share (user/public/OCM); role)

@labkode
Copy link
Member Author

labkode commented May 19, 2021

@ishank011 We still need the auth provider. We need a way to list these tokens and remove them from the user. We need an "app password" that will be converted to that token that is mint in the gateway.

I've discussed it this morning with @gmgigi96, we can have another chat tomorow

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

Successfully merging a pull request may close this issue.

3 participants