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

credentials: app users should have credential type with 2 keys - app + user #626

Open
altsang opened this issue Feb 1, 2018 · 3 comments
Labels

Comments

@altsang
Copy link
Contributor

altsang commented Feb 1, 2018

No description provided.

@altsang altsang added the bug label Feb 1, 2018
@altsang
Copy link
Contributor Author

altsang commented Feb 3, 2018

currently EG allows to you specify:

  1. users
  2. apps

as consumers for APIs

users as API consumers

  • Kevin can be a user defined in EG that consumers a set of API endpoints (an API) through a set of matching scopes
  • example user case - GitHub allows a GH user to hit their GH API directly as a consumer

apps as API consumers

  • Candy Crush can be defined as an app owned by Kevin and as an application , it can access a set of API endpoints (an API) through a set of matching scopes
  • example app case - Kevin is a registered user in EG, and he creates Candy Crush, Candy Crush as an app must be affiliated with a user as its owner

app users in EG as consumers
There is a third level of users that utilize the credential management system in EG - app users.

An app users is a user within EG that is a "registered" user of an app known to EG

example)

  • Kevin is a user in EG.
  • Kevin develops Candy Crush. Candy Crush is an app under Kevin as "owner" in EG
  • Vincenzo is a user in EG
  • Vincenzo registers as a user who can access his data in Candy Crush the app

Vincenzo's should have a OAuth2 credential for Candy Crush app. Currently I believe Vincenzo only has general OAuth2 credentials which means, he could potentially access any app that has matching scopes (highly unlikely)

this needs to be investigated and rectified

@duongvanba
Copy link

Have this issue fixed
I use oauth2 to indentify my user but I can not get user id from headers from eg

@XVincentX
Copy link
Member

We haven't been able to work on this issue yet. @duongvanba

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

No branches or pull requests

3 participants