Modified GrantResourceOwnerCredentials().