Imagine this. You’re on an interview. It’s going well. Then the interviewer turns to her computer to search for your Facebook profile. When she finds that it’s private, she asks you to provide your Facebook login information.

Sound invasive?

That’s what Justin Bassett, a New York-based statistician thought, reports The Boston Globe. While Bassett withdrew his application because he didn’t care to be employed with a company that inquired about such personal information, the article points out that not everyone has the luxury to do so. Many need employment and may have to provide their Facebook login information to obtain it.

Are you thinking the same thing, is this legal? According to The Boston Globe, there is legislation on the table in Illinois and Maryland that would deem it illegal for public agencies to ask for social network access. Apparently, this practice is much more common among law enforcement positions. As an alternative, some agencies ask for potential employees to login into social networks during the interview.

Either way, it’s sticky territory for companies and employees.