anchor.diff:      lager:debug("checking authorization of ~p ~p at service ~p [~p]",
                   [Issuer, Subject, ServiceId, A]),
       try
  -        {ok, Pid} = oidcc:find_openid_provider(Issuer),
  -        {ok, #{id := ProviderId}} = oidcc:get_openid_provider_info(Pid),
  -
  +        ProviderId = get_provider_id(Issuer),
           FilterById = fun({Id, _, _, _}) ->
                                case Id of
                                    ProviderId -> true;
  
positive.code:         {_, false} ->
              {true, ProviderId}
      end.
  
negative.code: -module(watts_service_authz).
  -include("watts.hrl").
  -export([is_authorized/3]).
  -export([validate_config/2]).
  
  