Any recommendations for Docker Registryv2 token auth server

I’m looking to leverage the token auth feature in registryv2 using either a go or ruby backend auth server. I am able to generate a token and sign it, but I’m recieving messages it’s invalid