Skip to content

szgabsz91/oauth2-authorization-proxy-client

Repository files navigation

OAuth2 Authorization Proxy Client

Build Status Dependencies License

Client libraries for OAuth2 Authorization Proxy.

The main responsibilities are:

  • Adds the Authorization and X-OAuth2-Provider headers to REST API requests.
  • In case of images, adds the access_token and oauth2_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.