Skip to content

Allow role assignments to belong to an organisation #235

@tuzz

Description

@tuzz

As per the Change Proposal and the Data Model, add an organisations table into the profile application. Assignments can have an optional association to an organisation. Organisations should be included in the response from the HydraV1 public /userinfo endpoint:

 "aud"=>["editor-dev"],
 "auth_time"=>1708013425,
 "country"=>"United Kingdom",
 "country_code"=>"GB",
 "email"=>"[email protected]",
 "email_verified"=>true,
 "iat"=>1708013425,
 "iss"=>"http://localhost:9001/",
 "name"=>"John Doe",
 "nickname"=>"John",
 "picture"=>"http://localhost:3002/profile/bbb9b8fd-f357-4238-983d-6f87b99bdbb2/avatar",
 "postcode"=>nil,
 "profile"=>"http://localhost:3002/profile",
 "rat"=>1708013425,
 "roles"=>"school-owner",
 "organisations"=> {
   "485ac1e2-1e57-4023-9514-6d5f572bd901"=>"school-owner,school-teacher"    <--- add this
 }
 "sub"=>"bbb9b8fd-f357-4238-983d-6f87b99bdbb2",
 "user"=>"bbb9b8fd-f357-4238-983d-6f87b99bdbb2",
 "username"=>""

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions