CB Response: SSO Login Error Invalid formatted data in 'first_name' field
search cancel

CB Response: SSO Login Error Invalid formatted data in 'first_name' field

book

Article ID: 289774

calendar_today

Updated On:

Products

Carbon Black EDR (formerly Cb Response)

Issue/Introduction

SSO Login Error Invalid formatted data in 'first_name' field.

Sample error:
 
"2019-05-01 11:08:01 [64691] <warning> cb.flask.blueprints.api_routes_saml - xxxxxxx authenticated and authorized, but not found in user database. Creating user. 
2019-05-01 11:08:01 [64691] <err> cb.api.user_management_api - The value 'xxxx xxxxxx' does not meet input validation rules for field 'first_name'. 
2019-05-01 11:08:01 [64691] <err> cb.flask.blueprints.api_routes_saml - SSO assertion auth failure 
Traceback (most recent call last): 
File "/usr/share/cb/virtualenv/lib/python2.7/site-packages/cb/flask/blueprints/api_routes_saml.py", line 544, in saml_assertion 
File "/usr/share/cb/virtualenv/lib/python2.7/site-packages/cb/flask/blueprints/api_routes_saml.py", line 302, in parse_response 
File "/usr/share/cb/virtualenv/lib/python2.7/site-packages/cb/flask/blueprints/api_routes_saml.py", line 235, in _create_user 
File "/usr/share/cb/virtualenv/lib/python2.7/site-packages/cb/api/user_management_api.py", line 64, in add_user 
File "/usr/share/cb/virtualenv/lib/python2.7/site-packages/cb/api/user_management_api.py", line 57, in validate_user_data 
UserInputValidationError: 400 Bad Request: Invalid formatted data in 'first_name' field"

Environment

  • CB Response: All versions

Cause

The given name field doesn't accept space.

Resolution

Don't use space on the first name field.