authorizer codes.  harvested from pull request from bordoley.