Move type definition for Identity in trait Authorization from method isAuthorized to head

With the old implementation the user must use pattern matching to get the type of the identity. With the new one the type is defined on the trait, so the user can only use this type of the identity.