make internal method private
Mark Dodwell
10 years ago
64 | 64 | { :params => params } |
65 | 65 | end |
66 | 66 | |
67 | def appsecret_proof | |
68 | @appsecret_proof ||= OpenSSL::HMAC.hexdigest(OpenSSL::Digest.new('sha256'), client.secret, access_token.token) | |
69 | end | |
70 | ||
71 | 67 | def build_access_token |
72 | 68 | if signed_request_contains_access_token? |
73 | 69 | hash = signed_request.clone |
246 | 242 | |
247 | 243 | url.to_s |
248 | 244 | end |
245 | ||
246 | def appsecret_proof | |
247 | @appsecret_proof ||= OpenSSL::HMAC.hexdigest(OpenSSL::Digest.new('sha256'), client.secret, access_token.token) | |
248 | end | |
249 | 249 | end |
250 | 250 | end |
251 | 251 | end |