Random question. I don't suppose the SDK would be ...
# singer-tap-development
c
Random question. I don't suppose the SDK would be able to allow an authenticator to be attached to a partition context in a REST Tap? I have a Tap that uses Microsoft's OAuth provider in a Multi-tenant set up. And each tenant is a partition key. And the OAuth token endpoint URL is different for each tenant, because it must include the specific Tenant ID in the OAuth token request endpoint (it's not possible to to use the 'common' Microsoft OAuth token endpoint because the App Registration is a Multi-tenant App registration)
I feel like I'm having a deja vu and I've asked this question before ... and now I think I need to try and look at this ... https://meltano.slack.com/archives/C01TCRBBJD7/p1643676993312459?thread_ts=1643658699.647619&cid=C01TCRBBJD7
v
I did something like this for indeed, if you look at that tap it might be helpful!
One auth type for getting a list of employers, then another for authing for each "employer" then used that token to do requests down stream
c
Thanks Derek! That looks good. It's pretty much what I was intending on doing. In my case, I will pass
context
into my
authenticator()
method.
Awesome. Finally got around to copying and pasting that logic into my tap and it works great. Thanks @visch !