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.

65 lines
1.3 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. providers(
  15. filter: String
  16. orderBy: String
  17. ): [AuthenticationProvider]
  18. }
  19. # -----------------------------------------------
  20. # MUTATIONS
  21. # -----------------------------------------------
  22. type AuthenticationMutation {
  23. login(
  24. username: String!
  25. password: String!
  26. provider: String!
  27. ): AuthenticationLoginResponse
  28. loginTFA(
  29. loginToken: String!
  30. securityCode: String!
  31. ): DefaultResponse
  32. updateProvider(
  33. provider: String!
  34. isEnabled: Boolean!
  35. config: [KeyValuePairInput]
  36. ): DefaultResponse
  37. }
  38. # -----------------------------------------------
  39. # TYPES
  40. # -----------------------------------------------
  41. type AuthenticationProvider {
  42. isEnabled: Boolean!
  43. key: String!
  44. props: [String]
  45. title: String!
  46. useForm: Boolean!
  47. icon: String
  48. config: [KeyValuePair]
  49. }
  50. type AuthenticationLoginResponse {
  51. responseResult: ResponseStatus
  52. tfaRequired: Boolean
  53. tfaLoginToken: String
  54. }