I'm not very sure that you should extend EnsLib.REST.Service to define a REST service with URLMap, but anyway, EnsLib.REST.Service is using EnsLib.HTTPInbound.Adapter so you can get the input data from OnProcessInput like this:

Method OnProcessInput(pInput As %GlobalCharacterStream, Output pOutput As %RegisteredObject) As %Status
{
     set authorization = pInput.Attributes("authorization")
...

Here is the doc related: https://docs.intersystems.com/healthconnect20251/csp/docbook/DocBook.UI....

  • Name: Luis Ángel Pérez
  • Where you’re from / based: I'm from Valladolid, a medium-size (Spain-standard) city in the center-north of Spain, but I'm working in Madrid.
  • What you do (your role / company / areas of interest): I'm sales engineer for InterSystems Iberia.
  • Expertise – I've been working as Java developer for 15 years and as Sales Engineer for the last 5...ufff, 20 years of experience! I feel myself a bit old...About 17 years working for Health sector.
  • Fun Fact or Hobbies – I love the history and my 5 years old son too! When somebody ask him about what is his favourite superhero he always answers...Julius Cesar!
  • LinkedIn – https://www.linkedin.com/in/luis-%C3%A1ngel-p%C3%A9rez-ramos-55393954/