-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add createAuthenticator mutation #4272
Conversation
|
||
var authenticatorDef = graphql.NewInputObject(graphql.InputObjectConfig{ | ||
Name: "IdentityDefinition", | ||
Description: "Definition of an identity. This is a union object, exactly one of the available fields must be present.", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
an authenticator, not an identity.
}, | ||
"definition": &graphql.InputObjectFieldConfig{ | ||
Type: graphql.NewNonNull(authenticatorDef), | ||
Description: "Definition of the new identity.", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the new authenticator.
@@ -1,1675 +0,0 @@ | |||
"""""" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do not delete this file in this commit.
|
||
"""Password authenticator definition.""" | ||
password: AuthenticatorDefinitionPassword | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I prefer the following shape. What do you think?
input AuthenticatorDefinition {
kind: AuthenticatorKind!
"""We will check type, and determine which field we will then look at."""
type: AuthenticatorType!
oobOtpEmail: AuthenticatorDefinitionOOBOTPEmail
oobOtpSMS: AuthenticatorDefinitionOOBOTPSMS
password: AuthenticatorDefinitionPassword
}
input AuthenticatorDefinitionOOBOTPEmail {
email: String!
}
input AuthenticatorDefinitionOOBOTPSMS {
phone: String!
}
input AuthenticatorDefinitionPassword {
password: String!
}
@louischan-oursky Updated, thanks! |
ref DEV-1360