imls-dmt / imls-dmt-api

imls-dmt-api
Apache License 2.0
1 stars 1 forks source link

return authenticated user type with token #64

Closed karlbenedict closed 3 years ago

karlbenedict commented 4 years ago

To enable client developer to customize user interface based on authenticated user type, return the user type with the token. This would allow the client to read the content of the cookie and customize the user interface accordingly.

hbarrett commented 3 years ago

Would this work? https://esip-dev-02.edacnm.org/user/groups

An empty array like {"groups": []} means the user is not logged in.

karlbenedict commented 3 years ago

I expect that that would work.