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

Add API key field to user profile #69

Closed
3 tasks done
bajiat opened this issue May 28, 2015 · 1 comment
Closed
3 tasks done

Add API key field to user profile #69

bajiat opened this issue May 28, 2015 · 1 comment
Assignees
Milestone

Comments

@bajiat
Copy link
Contributor

bajiat commented May 28, 2015

Implement API key field to user profile.

User story: As Minh (API consumer), I want to retrieve my API key.

Definition of done:

  • Add API key field to user schema
  • Add key preview field to user schema
  • Add API key / preview field to profile page
@bajiat bajiat added this to the Sprint 4 milestone Jun 1, 2015
brylie referenced this issue in apinf/meteor-api-umbrella Jun 1, 2015
@brylie
Copy link
Contributor

brylie commented Jun 2, 2015

We have at least two options for how to store the API Key data, in relation to the Meteor user.

  • We can store the API Umbrella User data within the Meteor user object (e.g. user.profile.apiUmbrellaUser..)
  • We can store the API Umbrella User data in a separate collection and have a 'foreign key' relationship in the Meteor user object (e.g. user.apiUmbrellaUser = key)

In the second case, we would write a collection helper to retrieve the correct API Umbrella User object from the ApiUmbrellaUsers collection, allowing traversal such as user.apiUmbrellaUser.apiKey.

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

No branches or pull requests

3 participants