updated authorization sample