Change OAuth realm and resource id