Hi Team, I am trying to check the possibility if w...
# general
s
Hi Team, I am trying to check the possibility if wiremock can be used in our API testing for Oauth2 flow specifically
*Client Credentail* Grant Type (server-to-server auth)
. My use case is to spin up mock Oauth2 server without explictly setting up the issuer, token, jwks endpoints & their responses. And server-to-server auth flow in my application should work considering
pyjwt
library calls does operations like fetching public key from jwks endpoint then decoding token using public key & issuer endpoint. I came across this link which mentions only
Authorization Code
is supported as of now. Is there any way for achieving
Client Credential
grant type scenario ?
t
I can’t see any reason this couldn’t be done, but we haven’t built a template for it yet. I suspect you could adapt the existing auth code template quite easily.
👍 1