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

Allow role assignments to belong to an organisation #235

Open
tuzz opened this issue Feb 15, 2024 · 0 comments
Open

Allow role assignments to belong to an organisation #235

tuzz opened this issue Feb 15, 2024 · 0 comments

Comments

@tuzz
Copy link
Contributor

tuzz commented Feb 15, 2024

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"=>""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants