some typos
Mark Dodwell
12 years ago
87 | 87 | # not already granted access, or simply moving straight to the |
88 | 88 | # callback where they have already granted access. |
89 | 89 | # |
90 | # we pass the state parameter which we detect in our callback | |
90 | # we pass the state parameter which we can detect in our callback | |
91 | 91 | # to do custom rendering/redirection for the canvas app page |
92 | 92 | redirect "/auth/facebook?signed_request=#{request.params['signed_request']}&state=canvas" |
93 | 93 | end |
94 | 94 | |
95 | 95 | get '/auth/:provider/callback' do |
96 | 96 | # we can do something special here is +state+ param is canvas |
97 | # (see notes abovein /canvas/ method for more details) | |
97 | # (see notes above in /canvas/ method for more details) | |
98 | 98 | content_type 'application/json' |
99 | 99 | MultiJson.encode(request.env) |
100 | 100 | end |