i have 2 portal, one and two. The portal one have all apis, and the portal
Two have the interfaces, Here just i am doing enter the username and
password in the login page so that will go the method of Portal Two. Then
it will pass the username and password of a method of Portal One, this is
am doing here. My question is how to do the basic authorization for encrypt
the username and password

res = RestClient::Resource.new url, :user_name => params[:name],
:password => params[:password]
response = res.post :content_type => :json, :accept => :json

Bcz now here the username and password is plain text. How to do the Basic
Authorization here...Any help would be appreciated: please give one
clarification of that.


You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/ce3C55EsSaIJ.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

Search Discussions

Discussion Posts

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 1 of 3 | next ›
Discussion Overview
grouprubyonrails-talk @
postedMar 6, '12 at 8:16a
activeMar 7, '12 at 5:37a

2 users in discussion

Amvis: 2 posts Alpha Blue: 1 post



site design / logo © 2022 Grokbase