Implemented a modified version of OAuth authorisation server and resource server using json web tokens.