This example shows how to build an OAuth Authorization Server app that combines both DB and LDAP as authentication providers and uses this authentication to issue a token. It also contains simple resource server that uses this token to provide an access to the REST endpoint