refactor: webpack fixes, missing auth icons, auth resolvers

This commit is contained in:
NGPixel
2018-03-10 00:58:04 -05:00
parent 69a0711d16
commit 16d3336cd0
25 changed files with 212 additions and 116 deletions

View File

@@ -1,3 +1,7 @@
# ===============================================
# AUTHENTICATION
# ===============================================
extend type Query {
authentication: AuthenticationQuery
}
@@ -6,6 +10,10 @@ extend type Mutation {
authentication: AuthenticationMutation
}
# -----------------------------------------------
# QUERIES
# -----------------------------------------------
type AuthenticationQuery {
providers(
filter: String
@@ -13,7 +21,22 @@ type AuthenticationQuery {
): [AuthenticationProvider]
}
# -----------------------------------------------
# MUTATIONS
# -----------------------------------------------
type AuthenticationMutation {
login(
username: String!
password: String!
provider: String!
): AuthenticationLoginResponse
loginTFA(
loginToken: String!
securityCode: String!
): DefaultResponse
updateProvider(
provider: String!
isEnabled: Boolean!
@@ -21,6 +44,10 @@ type AuthenticationMutation {
): DefaultResponse
}
# -----------------------------------------------
# TYPES
# -----------------------------------------------
type AuthenticationProvider {
isEnabled: Boolean!
key: String!
@@ -30,3 +57,9 @@ type AuthenticationProvider {
icon: String
config: [KeyValuePair]
}
type AuthenticationLoginResponse {
operation: ResponseStatus
tfaRequired: Boolean
tfaLoginToken: String
}