idp.go 308 B

1234567891011121314151617181920
  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. AccountArchived bool
  12. }
  13. type Group struct {
  14. ID string
  15. Name string
  16. Members []string
  17. }