Client libraries for OAuth2 Authorization Proxy.
The main responsibilities are:
- Adds the
Authorization
andX-OAuth2-Provider
headers to REST API requests. - In case of images, adds the
access_token
andoauth2_provider
query parameters. - Provides components to login and logout with several supported OAuth2 providers such as Facebook and Google.
- Stores the authentication information in local storage.
Currently supported technology stacks:
- VanillaJS
- AngularJS
The AngularJS demo application that uses mock data can be viewed here: https://szgabsz91.github.io/oauth2-authorization-proxy-client. You can authenticate with Facebook or Google, but due to the mock data, profile information will not reflect your actual profile. However, without authentication, you will get HTTP 401 for REST requests and protected image requests.