contember/engine

updateIDP fails when autoSignUp option is not provided

Closed this issue · 0 comments

mutation($identityProvider: String!, $clientId: String!, $clientSecret: String!, $url: String!) {
	updateIDP(
		identityProvider: $identityProvider,
		configuration: {
			clientId: $clientId,
			clientSecret: $clientSecret,
			url: $url,
		}
	) {
		ok
		error {
			code
			developerMessage
		}
	}
}

result in server error

NotNullViolationError: Database query error: null value in column "auto_sign_up" of relation "identity_provider" violates not-null constraint
SQL: update  "tenant"."identity_provider" set  "configuration" =  ?, "auto_sign_up" =  ?  where "id" = ?