I actually think it'd be better to calculate the right user/password here inside Login, and pass them to oauthInputs, that way oauthInputs is a generic function taking a username/password and returning a proper oauthInput message rather than being tied to this particular way of getting usernames and password for a workload.