foodcoop-adam / foodsoft

DEPRECATED, being merged in upstream. Web-based software for foodcoops - as used in NL.
http://foodcoop-adam.github.io/
Other
10 stars 3 forks source link

[vkmk] Update workgroups at login from vokomokum #154

Closed wvengen closed 8 years ago

wvengen commented 9 years ago

When a member logs into Foodsoft using the vokomokum login, the user's groups are available from the userinfo endpoint. On each login, Foodsoft needs to update the workgroups a member is part of based on that info.

wvengen commented 9 years ago

Member's userinfo endpoint returns group info, like:

{
(...)
"groups": [
    {
        "coordinator": true,
        "name": "Systems",
        "id": 1
    }
]
}

Let's match groups by name. If a group doesn't exist in Foodsoft, it's as if the user is not part of that group. Foodsoft has no such thing as a group coordinator, we need to check if that is needed or not.

wvengen commented 8 years ago

Implemented in 3687beb79642c7516cc7c13686aceb212227dfed.