Basic authorization

Can I do this in this direction?