idp.go 356 B

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