2018-03-10 00:58:04 -05:00
|
|
|
# ===============================================
|
|
|
|
# AUTHENTICATION
|
|
|
|
# ===============================================
|
|
|
|
|
2018-03-05 15:49:36 -05:00
|
|
|
extend type Query {
|
|
|
|
authentication: AuthenticationQuery
|
|
|
|
}
|
|
|
|
|
|
|
|
extend type Mutation {
|
|
|
|
authentication: AuthenticationMutation
|
|
|
|
}
|
|
|
|
|
2018-03-10 00:58:04 -05:00
|
|
|
# -----------------------------------------------
|
|
|
|
# QUERIES
|
|
|
|
# -----------------------------------------------
|
|
|
|
|
2018-03-05 15:49:36 -05:00
|
|
|
type AuthenticationQuery {
|
2018-06-04 00:41:29 -04:00
|
|
|
strategies(
|
2018-03-09 00:33:43 -05:00
|
|
|
filter: String
|
|
|
|
orderBy: String
|
2018-06-04 00:41:29 -04:00
|
|
|
): [AuthenticationStrategy]
|
2018-03-05 15:49:36 -05:00
|
|
|
}
|
|
|
|
|
2018-03-10 00:58:04 -05:00
|
|
|
# -----------------------------------------------
|
|
|
|
# MUTATIONS
|
|
|
|
# -----------------------------------------------
|
|
|
|
|
2018-03-05 20:53:24 -05:00
|
|
|
type AuthenticationMutation {
|
2018-03-10 00:58:04 -05:00
|
|
|
login(
|
|
|
|
username: String!
|
|
|
|
password: String!
|
|
|
|
provider: String!
|
|
|
|
): AuthenticationLoginResponse
|
|
|
|
|
|
|
|
loginTFA(
|
|
|
|
loginToken: String!
|
|
|
|
securityCode: String!
|
|
|
|
): DefaultResponse
|
|
|
|
|
2018-06-04 00:41:29 -04:00
|
|
|
updateStrategy(
|
2018-03-05 20:53:24 -05:00
|
|
|
provider: String!
|
|
|
|
isEnabled: Boolean!
|
|
|
|
config: [KeyValuePairInput]
|
|
|
|
): DefaultResponse
|
|
|
|
}
|
2018-03-05 15:49:36 -05:00
|
|
|
|
2018-03-10 00:58:04 -05:00
|
|
|
# -----------------------------------------------
|
|
|
|
# TYPES
|
|
|
|
# -----------------------------------------------
|
|
|
|
|
2018-06-04 00:41:29 -04:00
|
|
|
type AuthenticationStrategy {
|
2018-03-05 15:49:36 -05:00
|
|
|
isEnabled: Boolean!
|
|
|
|
key: String!
|
|
|
|
props: [String]
|
|
|
|
title: String!
|
|
|
|
useForm: Boolean!
|
|
|
|
icon: String
|
2018-03-05 20:53:24 -05:00
|
|
|
config: [KeyValuePair]
|
2018-03-05 15:49:36 -05:00
|
|
|
}
|
2018-03-10 00:58:04 -05:00
|
|
|
|
|
|
|
type AuthenticationLoginResponse {
|
2018-03-24 22:35:47 -04:00
|
|
|
responseResult: ResponseStatus
|
2018-03-10 00:58:04 -05:00
|
|
|
tfaRequired: Boolean
|
|
|
|
tfaLoginToken: String
|
|
|
|
}
|