Learning Authorization and Authentication