idp.go 286 B

12345678910111213141516171819
  1. package idp
  2. type Client interface {
  3. GetUsers() ([]User, error)
  4. GetGroups() ([]Group, error)
  5. }
  6. type User struct {
  7. ID string
  8. Username string
  9. DisplayName string
  10. AccountDisabled bool
  11. }
  12. type Group struct {
  13. ID string
  14. Name string
  15. Members []string
  16. }