Skip to content

Get user profile from UAA? #4

Open

Description

@ahrobinson

How would I go about getting the user profile in the most best practice way? In other versions of predix seed, there was middleware setup that made a request to /check_token and it would give you back user info. Would I just setup middleware like before or is there another way to do this via passport?

Screenshot references: https://puu.sh/rwLXo/ec56c5c3dd.png
https://puu.sh/rwM06/71afe853b4.png

Activity

  1. gstroup commented on Oct 3, 2016

    @gstroup
    Contributor

    Good question. I don't think that is supported by passport. You're talking about the UAA user_info endpoint right? I think you would have to set up your own route in express to call that endpoint. I'll look into passport support for user_info a little more.

  2. ahrobinson commented on Oct 4, 2016

    @ahrobinson
    Author

    That is what I thought as well. Thanks for looking into it. I will look more into it as well and post if I find anything.

  3. manderson23 commented on Nov 2, 2016

    @manderson23

    This would be useful to have as an example since the predix-seed is now based on this code.

    The previous angular seed supported user_info while the new polymer seed does not.

  4. gstroup commented on Nov 4, 2016

    @gstroup
    Contributor

    I agree, this would be helpful. We'll work on adding a route to express, to demonstrate how this is done.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions