The PicketLink OAuth Provider is a web application that contains:
JavaScript Framework (Aerogear JS, Twitter Bootstrap and JQuery).
RESTEasy Services.
PicketLink IDM to integrate with DBs or LDAP.
The following diagram illustrates the architecture.
The architecture contains the following in the web application:
Account Registration REST service: Register users.
App Registration REST service: Register OAuth Applications.
NOTE: In the above diagram, an LDAP server can be used instead of the DB.