# Single sign on

**URL:** <https://www.ruby-forum.com/t/single-sign-on/152401>\
**Category:** Rails\
**Created:** [November 3, 2008, 4:17pm UTC](https://www.ruby-forum.com/t/single-sign-on/152401 "2008-11-03T16:17:18Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![newguy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/c67d28/32.png) [@newguy](https://www.ruby-forum.com/u/newguy)\
**Post date:** [November 3, 2008, 4:17pm UTC](https://www.ruby-forum.com/t/single-sign-on/152401/1 "2008-11-03T16:17:18Z")

</div>

about

---

<div class="post-metadata">

**Author:** ![newguy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/c67d28/32.png) [@newguy](https://www.ruby-forum.com/u/newguy)\
**Post date:** [November 3, 2008, 5:14pm UTC](https://www.ruby-forum.com/t/single-sign-on/152401/2 "2008-11-03T17:14:17Z")

</div>

> **[OpenID - OpenID Foundation](https://openid.net/)**
>
> Our mission is to lead the global community in creating identity standards that are secure, interoperable and privacy-preserving.

newguy wrote:

> about

---

<div class="post-metadata">

**Author:** ![newguy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/c67d28/32.png) [@newguy](https://www.ruby-forum.com/u/newguy)\
**Post date:** [November 4, 2008, 10:29am UTC](https://www.ruby-forum.com/t/single-sign-on/152401/3 "2008-11-04T10:29:39Z")

</div>

hi,

I’m using [asp.net](http://asp.net) application and i access this from cURL .Now i want to  
know,how to use single sign on in cURL.

Reply as soon as possible

---

<div class="post-metadata">

**Author:** ![newguy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/c67d28/32.png) [@newguy](https://www.ruby-forum.com/u/newguy)\
**Post date:** [November 5, 2008, 10:05am UTC](https://www.ruby-forum.com/t/single-sign-on/152401/4 "2008-11-05T10:05:05Z")

</div>

Thank you for your reply.

I m using HTTP Basic authentication in my application.

And i have one more doubt with Curl + Single sign on,

```
    Now i use username & password for all commands(Like

```

POST,PUT,DELETE,GET) to create,update,delete and read my data.

```
  Is it possible to maintain the username and password until i 

```

logout  
from cURL

---

<div class="post-metadata">

**Author:** ![newguy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/c67d28/32.png) [@newguy](https://www.ruby-forum.com/u/newguy)\
**Post date:** [November 4, 2008, 5:44pm UTC](https://www.ruby-forum.com/t/single-sign-on/152401/5 "2008-11-04T17:44:53Z")

</div>

I suppose that would depend on how the authentication is handled in the  
[asp.net](http://asp.net) application. Is it HTML form based, HTTP Basic Authentication,  
or something else?

> I’m using [asp.net](http://asp.net) application and i access this from cURL .Now i want to  
> know,how to use single sign on in cURL.

I assume from this that the [asp.net](http://asp.net) application is not handling Cross  
Site Request Forgery (CSRF) protection. Is that correct?

You say you are accessing the [asp.net](http://asp.net) application from cURL. Does that  
mean you are successfully authenticating with the [asp.net](http://asp.net) application  
and you want keep track of the state? If so then you need to get cURL to  
manage the session cookies from the [asp.net](http://asp.net) application (assuming the  
[asp.net](http://asp.net) application is managing sessions with cookies). See the curl man  
page and look for --cookie-jar option.

cURL also support HTTP Basic Authentication and HTTPS, so if the [asp.net](http://asp.net)  
application supports this authentication method then you just need to  
send it the username and password in the URL.  
[https://user:removed\_email\_address@domain.invalid/login.asp](https://user:removed_email_address@domain.invalid/login.asp). And don’t forget to use a  
cookie jar for managing the application’s session cookies.

This is the best answer I can give with the information you have  
provided. Maybe a more detailed explanation of what you’re actually  
trying to do would help.

venu gopal wrote:

> hi,
> 
> I’m using [asp.net](http://asp.net) application and i access this from cURL .Now i want to  
> know,how to use single sign on in cURL.
> 
> Reply as soon as possible
