An electronic device comprising: a display having a fingerprint sensing region; a fingerprint sensor disposed in the fingerprint sensing region; and a processor, wherein the processor is configured to: control the display to output light in the fingerprint sensing region to serve as a light source for the fingerprint sensor, said fingerprint sensing region being a region for sensing fingerprint information; wherein controlling the display comprises operating a first sub-region of the fingerprint sensing region to emit light with a first display attribute and operating a second sub-region of the fingerprint sensing region to emit light with a second display attribute different from the first display attribute; while the first sub-region is operated to emit light with the first display attribute and the second sub-region is operated to emit light with the second display attribute, obtain, through the fingerprint sensor, an optical signal corresponding to an external object, wherein the optical signal is generated based on light that is emitted from the first sub-region and the second sub-region and reflected by the external object; perform authentication on the external object if the optical signal, generated based on light emitted from the first and second sub-region, is above a preset threshold; and prevent authentication on the external object if the optical signal, generated based on light emitted from the first and second sub-region, is below the preset threshold. a display having a fingerprint sensing region; a fingerprint sensor disposed in the fingerprint sensing region; and a processor, wherein the processor is configured to: control the display to output light in the fingerprint sensing region to serve as a light source for the fingerprint sensor, said fingerprint sensing region being a region for sensing fingerprint information; wherein controlling the display comprises operating a first sub-region of the fingerprint sensing region to emit light with a first display attribute and operating a second sub-region of the fingerprint sensing region to emit light with a second display attribute different from the first display attribute; while the first sub-region is operated to emit light with the first display attribute and the second sub-region is operated to emit light with the second display attribute, obtain, through the fingerprint sensor, an optical signal corresponding to an external object, wherein the optical signal is generated based on light that is emitted from the first sub-region and the second sub-region and reflected by the external object; perform authentication on the external object if the optical signal, generated based on light emitted from the first and second sub-region, is above a preset threshold; and prevent authentication on the external object if the optical signal, generated based on light emitted from the first and second sub-region, is below the preset threshold. control the display to output light in the fingerprint sensing region to serve as a light source for the fingerprint sensor, said fingerprint sensing region being a region for sensing fingerprint information; wherein controlling the display comprises operating a first sub-region of the fingerprint sensing region to emit light with a first display attribute and operating a second sub-region of the fingerprint sensing region to emit light with a second display attribute different from the first display attribute; while the first sub-region is operated to emit light with the first display attribute and the second sub-region is operated to emit light with the second display attribute, obtain, through the fingerprint sensor, an optical signal corresponding to an external object, wherein the optical signal is generated based on light that is emitted from the first sub-region and the second sub-region and reflected by the external object; perform authentication on the external object if the optical signal, generated based on light emitted from the first and second sub-region, is above a preset threshold; and prevent authentication on the external object if the optical signal, generated based on light emitted from the first and second sub-region, is below the preset threshold.