Finish authentication and authorization