如何在Identityserver4中使用Rust-Rocket?

时间:2019-06-16 01:42:32

标签: rust identityserver4 rocket

我想用火箭做些类似的事情

const auth = jwt({
    secret: jwksClient.expressJwtSecret({
        cache: true,       
        rateLimit: true,   
        jwksRequestsPerMinute: 2,
        jwksUri: `${issuer}/.well-known/openid-configuration/jwks`
    }),
    // validate the audience & issuer from received token vs JWKS endpoint
    audience: 'sinanbir.com.auth',
    issuer: issuer,
    algorithms: ['RS256']
});

0 个答案:

没有答案