Added authorization (up to Listing 9.17)