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 7589565
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T20:11:32+00:00 2026-05-30T20:11:32+00:00

We have a ruby based API that our C# service needs to query that

  • 0

We have a ruby based API that our C# service needs to query that uses token-based authentication. I don’t see anywhere in the httpwebrequest method’s documentation that it supports this. Is there an alternative?

  • 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-05-30T20:11:33+00:00Added an answer on May 30, 2026 at 8:11 pm

    Token-based authentication is nothing special. It still generally uses HTTP and therefore an HttpWebRequest should work just fine for it. This is how token-based authentication typically happens.

    First of all, there are three different parties involved with token or claims-based authentication. The server that is being authenticated to, the client that is authenticating, and a third party, the token provider. Typical authentication only includes a client and a server, but in the case of token-based authentication, there is the token provider. The token provider is known to the client and is trusted by the server.

    The authentication process proceeds by the client making an HTTP request to the token provider, asking for the provider to provide a token to the client. Of course, at this point, the client will most likely need to authenticate to the token provider – this is usually done using conventional authentication methods. Assuming the client authenticates to the token provider, the token provider will respond with a token. The client then takes this token and makes a request to the server with the token included. The token has been signed such that the server can tell that the token came from its trusted token provider and what privileges the client should have.

    Long story short, HttpWebRequest should be perfectly adequate. The only problem is that you’ll have to know all of the specifics of the server and token provider, such as how the client is supposed to authenticate to the token provider (basic HTTP auth? posted username/password?), how the token provider responds with the token (included in the response? sets cookies?), how the server then expects the client to authenticate using the token (post the token to the server? set a cookie with the token?), etc.

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

Sidebar

Related Questions

I have some Ruby web apps that use OpenID for authentication and store the
We have a Ruby-on-rails server-side deployment that needs to allow users to download a
I have to implement some code in Ruby based on Java implementation that was
I have code to run sql query in ruby as follows sql = ActiveRecord::Base.connection()
so i have ruby script that simply writes to a test.txt file with hello
I have a Ruby on Rails Website that makes HTTP calls to an external
I have a Ruby script that generates a UTF8 CSV file remotely in a
I have a Ruby script in my Rails app that I use to load
I have a ruby application that executes ant as a subprocess using backtick. This
I have the Ruby on Rails-based application Redmine (based on the BitNami redmine package)

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.