Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8739683
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T10:59:01+00:00 2026-06-13T10:59:01+00:00

A Rails gem titled omniauth-ebay which is compatible with Sinatra uses the code below

  • 0

A Rails gem titled omniauth-ebay which is compatible with Sinatra uses the code below to setup itself:

Rails.application.config.middleware.use OmniAuth::Builder do
       provider :ebay, "runame", "devid", "appid", "certid", "siteid", "apiurl"
    end

I know that omniauth (omniauth-ebay based on it) gem is definitely compatible with Sinatra. Note that that’s not a eBay or gem specific question, there certainly should be a generic way to setup a middleware in Sinatra.

Well, how do I change the code above to make it work with Sinatra?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T10:59:02+00:00Added an answer on June 13, 2026 at 10:59 am

    You just need to understand what Rails is hiding from you. Rack middlewares are actually mounted directly inside of Rack.

    In your config.ru file:

    use OmniAuth::Builder do
      provider :ebay, "runame", "devid", "appid", "certid", "siteid", "apiurl"
    end
    

    The config.ru is loaded by Rack, so anything Rack-specific should go in there, unless you have some sort of system to put it elsewhere. I suspect Sinatra probably allows you to call #use from inside your Sinatra application, but still, config.ru will work in all cases.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Where exactly does that line of code go for a Rails application? Which file,
Using the less-rails gem. Using the following code to mix two colours: @base: #ffdc52;
I have a ruby-on-rails application that wishes to utilise the tumblr gem for adding
I have a relatively vanilla Rails application with the bootstrap-sass gem providing Twitter Bootstrap
Rather than using the latest Rails gem for my application, I like to have
I am developing a rails application which should send push notifications to iOS devices.
I'm trying to implement switch_user gem in my existing rails 3.0.9 application. There are
I am using fb_graph rails gem for posting a message to my user's Facebook
I am using successfully the mobylette rails gem: https://github.com/tscolari/mobylette I was wondering if anybody
I was trying to install Rails Gem from the Command prompt. And my PC

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.