consistent digest instantiation
Mark Dodwell
10 years ago
244 | 244 | end |
245 | 245 | |
246 | 246 | def appsecret_proof |
247 | @appsecret_proof ||= OpenSSL::HMAC.hexdigest(OpenSSL::Digest.new('sha256'), client.secret, access_token.token) | |
247 | @appsecret_proof ||= OpenSSL::HMAC.hexdigest(OpenSSL::Digest::SHA256.new, client.secret, access_token.token) | |
248 | 248 | end |
249 | 249 | end |
250 | 250 | end |