Trying to get an RFID lock to work

I'm following this tutorial to make an RFID lock, but I'm a little worried about my power supply.

I'm using a wall adaptor that outputs 12VDC at 2.5A.

I'm also using a 12VDC solenoid with a rated current of 0.58A.

Am I alright to be plugging the + terminal of the adaptor straight in to Vin on an Arduino UNO?

(deleted)

Could you maybe expand on that? What kind of diode/capacitors would you recommend?

(deleted)

1N4001 diode, 100 uF capacitor. Google "arduino solenoid" for better examples.