In a manner that is recognized or approved by an authority, formally.
In a manner that is formally recognized or authorized, typically by a government or organization, indicating an official capacity or role.