PERI-3 base implementation of oauth resource server