You log in using you SLU account (aka Idis account).
To borrow books in the lending machine, you use your personal number and a 4-digit PIN code that you create under My loans/Personal details. If you do not have a Swedish personal number, you can get a library card via the library desk.