I have a set of services I am deploying to Azure that are currently guarded by Azure AD B2C. I would like to be able to write tests for some parts of this system (ie: regularly testing that our authorization workflows do their duty).
I was thinking of having these tests run through the login workflows automatically but from what I can see there's no easy way to acquire a token with a username/password programmatically.
I looked at the thread here: headless authentication Azure AD b2c and the reply by @spottedmahn sort of helps, but it doesn't gain me a context from which I can, say, query the AD graph API for group membership.
Is there a API I can call to acquire a valid token from ADB2C?
(For what it is worth, our backend services are Ruby and Go, which do not have official ADAL libraries as of yet)