lib/omniauth/strategies/feishu.rb in omniauth-feishu-0.1.0 vs lib/omniauth/strategies/feishu.rb in omniauth-feishu-0.1.2

- old
+ new

@@ -35,9 +35,15 @@ response_body = JSON.parse(response.body) response_body['data'] end end + def authorize_params + super.tap do |params| + params[:app_id] = options.client_id + end + end + def build_access_token resp = Faraday.post( options.client_options.token_url, { code: request.params["code"], app_access_token: app_access_token, grant_type: "authorization_code" }.to_json, content_type: "application/json"