a license to (do something)
The authority or permission to do something. The pharmaceutical company treated its sole ownership of lifesaving drug's formula as a license to charge exorbitant amounts of money for it. The secret agent was granted a license to kill by the CIA.
license to do something
permission, right, or justification to do something. You have no license to behave in that manner! Who granted you license to enter my house without knocking?