add context to resource auth methods