Who can buy the Eurail pass?
Anyone who isn't a European resident can book and use the Eurail pass.
Your citizenship can be proved using a valid passport or an ID card fit for travel to and through Europe.
A drivers license is not accepted.
If you aren't a European citizen and you can prove that you reside in Europe for more than 6 months, you could also choose to use an Interrail Pass - More info