feat: admin auth - save config

This commit is contained in:
NGPixel
2018-06-25 20:55:00 -04:00
parent 0afa65fa58
commit 2500d8b054
6 changed files with 137 additions and 48 deletions

View File

@@ -37,10 +37,8 @@ type AuthenticationMutation {
securityCode: String!
): DefaultResponse
updateStrategy(
strategy: String!
isEnabled: Boolean!
config: [KeyValuePairInput]
updateStrategies(
strategies: [AuthenticationStrategyInput]
): DefaultResponse
}
@@ -58,7 +56,7 @@ type AuthenticationStrategy {
config: [KeyValuePair]
selfRegistration: Boolean!
domainWhitelist: [String]!
autoEnrollGroups: [String]!
autoEnrollGroups: [Int]!
}
type AuthenticationLoginResponse {
@@ -66,3 +64,12 @@ type AuthenticationLoginResponse {
tfaRequired: Boolean
tfaLoginToken: String
}
input AuthenticationStrategyInput {
isEnabled: Boolean!
key: String!
config: [KeyValuePairInput]
selfRegistration: Boolean!
domainWhitelist: [String]!
autoEnrollGroups: [Int]!
}