wikijs-fork/server/graph/schemas/authentication.graphql

79 lines
1.6 KiB
GraphQL
Raw Normal View History

# ===============================================
# AUTHENTICATION
# ===============================================
extend type Query {
authentication: AuthenticationQuery
}
extend type Mutation {
authentication: AuthenticationMutation
}
# -----------------------------------------------
# QUERIES
# -----------------------------------------------
type AuthenticationQuery {
2018-06-04 04:41:29 +00:00
strategies(
filter: String
orderBy: String
2018-06-04 04:41:29 +00:00
): [AuthenticationStrategy]
}
# -----------------------------------------------
# MUTATIONS
# -----------------------------------------------
type AuthenticationMutation {
login(
username: String!
password: String!
2018-06-17 15:12:11 +00:00
strategy: String!
): AuthenticationLoginResponse
loginTFA(
loginToken: String!
securityCode: String!
): DefaultResponse
2018-06-26 00:55:00 +00:00
updateStrategies(
strategies: [AuthenticationStrategyInput]
): DefaultResponse
}
# -----------------------------------------------
# TYPES
# -----------------------------------------------
2018-06-04 04:41:29 +00:00
type AuthenticationStrategy {
isEnabled: Boolean!
key: String!
props: [String]
title: String!
2018-08-04 21:27:55 +00:00
description: String
useForm: Boolean!
2018-08-04 21:27:55 +00:00
logo: String
website: String
icon: String
config: [KeyValuePair]
selfRegistration: Boolean!
domainWhitelist: [String]!
2018-06-26 00:55:00 +00:00
autoEnrollGroups: [Int]!
}
type AuthenticationLoginResponse {
responseResult: ResponseStatus
tfaRequired: Boolean
tfaLoginToken: String
}
2018-06-26 00:55:00 +00:00
input AuthenticationStrategyInput {
isEnabled: Boolean!
key: String!
config: [KeyValuePairInput]
selfRegistration: Boolean!
domainWhitelist: [String]!
autoEnrollGroups: [Int]!
}