Correct management of scopes, user approval handler for trusted clients
added.