Sync Gateway OIDC Implicit Flow: no provider match found

I’m trying to use Auth0 as my OP using an RS256 signed JWT. I’m assuming I’m not configuring Sync Gateway correctly:

"databases": {
    "myapp": {
        "server": "http://10.0.0.4:8091",
        "bucket": "myapp",
        "oidc": {
            "providers": {
                "auth0": {
                    "issuer": "https://myapp.auth0.com/",
                    "client_id": "myclientid",
                    "register": true
                }
            }
        }
    }
}

When I POST a valid token via curl to /myapp/session the logs show:

2017-08-14T18:56:35.660Z OIDC+: AuthenticateJWT called with token: eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImtpZCI6IlJEaERSVGMwTXpVeE1VVkJSRVpFTWpBeE1ERXdRak16T1RFMk5rVTVSVVpFTnpVd09EWTBNZyJ9.eyJuYW1lIjoiaW9zdGVzdGVyQGFnaWxpdHljb3Vyc2VtYXN0ZXIuY29tIiwibmlja25hbWUiOiJpb3N0ZXN0ZXIiLCJwaWN0dXJlIjoiaHR0cHM6Ly9zLmdyYXZhdGFyLmNvbS9hdmF0YXIvN2FjZmU1NmZjNjViMGU4NDAyODljYTZmZWZkNDg4ODA_cz00ODAmcj1wZyZkPWh0dHBzJTNBJTJGJTJGY2RuLmF1dGgwLmNvbSUyRmF2YXRhcnMlMkZpby5wbmciLCJ1cGRhdGVkX2F0IjoiMjAxNy0wOC0xNFQxNDoxMDoxMy45OTRaIiwiZW1haWwiOiJpb3N0ZXN0ZXJAYWdpbGl0eWNvdXJzZW1hc3Rlci5jb20iLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiaXNzIjoiaHR0cHM6Ly9hZ2lsaXR5Y291cnNlbWFzdGVyLmF1dGgwLmNvbS8iLCJzdWIiOiJhdXRoMHw1OTJiOTljNDZiODFmZTViYWQ4NjRhZDAiLCJhdWQiOiJZd0pFeGNObkx2SXVHbTJvUmpIQUMxN2dHQmRwMDFhZSIsImV4cCI6MTUwMjc1NTgxNCwiaWF0IjoxNTAyNzE5ODE0LCJub25jZSI6InRrQUhFVGFnZnF3UH4xZUw5alI1YnQ3Sjd0ZW1rVThBIiwiYXRfaGFzaCI6InhDcExtVnBiWEFDUDZhTEY5bGRkTWcifQ.GlYBbuc3cbtS7qz0U-J-P0p4bKaPb9pU5ZrfFxDuodxjYemzHyWiPPKbrCo7_5SjtZRJKbNvcwpsMRg3zVU9G-9dip8Hfu7RJQHAGasKj7ebHk_ibD1kNGc1QrPZL1oxXNO7u3vPJKm9XflorOlAhdDabAZ9p0W27q54ABzd6IqA1auIgqVfFoFmzco3E4YMVt4BEArMw8pFzgQ30e-zQxKICyhswnbYPmAnSZ2omOLWNr_2h1neg6DfjQpBirky0kyOdP4_rhHMc2RyCxQcCl8LRyBbbcE3Qcpl_bpOqEtTD9zabOjwkG92BAV26txCnPFSO-dE7njwtABSuVArrA
2017-08-14T18:56:35.661Z OIDC+: JWT issuer: https://myapp.auth0.com/, audiences: [myclientid]
2017-08-14T18:56:35.662Z OIDC+: Call GetProviderForIssuer w/ providers: map[auth0:0xc4201126c0]
2017-08-14T18:56:35.662Z OIDC+: GetProviderForIssuer with issuer: https://myapp.auth0.com/, audiences: [myclientid]
2017-08-14T18:56:35.663Z OIDC+: No provider match found
2017-08-14T18:56:35.663Z OIDC+: Provider for issuer: <nil>

Can anyone tell me how to correctly configure the provider to match the token?
Thanks

I was using a dockerfile and the tag for sync gateway’s latest docker file was out of date.

same here
is there any advice??

@willyou can you post your configuration (or a relevant snippet) and any relevant logs?