refactor: webpack fixes, missing auth icons, auth resolvers
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user