This example illustrates the use of the OpenLyers JS library to draw a composite map on top of the Bing basemap with overlay WMS tiles served from an OAuth2 protected Geoserver. This example demonstrates the two options how to submit the OAuth2 access token: 1) Via a URL parameter and 2) via the HTTP Authorization header. In order to see the protected overlay, please login. You can then use the layer switcher to switch between the protected layers. To observe the difference in the network call, you can use the Web Browser's Developer Tools.