You can do that as part of an OAuth workflow. You don’t need to have them on separate pages for that to happen.