Added authorization context factory