You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

78 lines
1.6 KiB

  1. # ===============================================
  2. # AUTHENTICATION
  3. # ===============================================
  4. extend type Query {
  5. authentication: AuthenticationQuery
  6. }
  7. extend type Mutation {
  8. authentication: AuthenticationMutation
  9. }
  10. # -----------------------------------------------
  11. # QUERIES
  12. # -----------------------------------------------
  13. type AuthenticationQuery {
  14. strategies(
  15. filter: String
  16. orderBy: String
  17. ): [AuthenticationStrategy]
  18. }
  19. # -----------------------------------------------
  20. # MUTATIONS
  21. # -----------------------------------------------
  22. type AuthenticationMutation {
  23. login(
  24. username: String!
  25. password: String!
  26. strategy: String!
  27. ): AuthenticationLoginResponse
  28. loginTFA(
  29. loginToken: String!
  30. securityCode: String!
  31. ): DefaultResponse
  32. updateStrategies(
  33. strategies: [AuthenticationStrategyInput]
  34. ): DefaultResponse
  35. }
  36. # -----------------------------------------------
  37. # TYPES
  38. # -----------------------------------------------
  39. type AuthenticationStrategy {
  40. isEnabled: Boolean!
  41. key: String!
  42. props: [String]
  43. title: String!
  44. description: String
  45. useForm: Boolean!
  46. logo: String
  47. website: String
  48. icon: String
  49. config: [KeyValuePair]
  50. selfRegistration: Boolean!
  51. domainWhitelist: [String]!
  52. autoEnrollGroups: [Int]!
  53. }
  54. type AuthenticationLoginResponse {
  55. responseResult: ResponseStatus
  56. tfaRequired: Boolean
  57. tfaLoginToken: String
  58. }
  59. input AuthenticationStrategyInput {
  60. isEnabled: Boolean!
  61. key: String!
  62. config: [KeyValuePairInput]
  63. selfRegistration: Boolean!
  64. domainWhitelist: [String]!
  65. autoEnrollGroups: [Int]!
  66. }