Displaying 1 result from an estimated 1 matches for "tokenstring".
Did you mean:
token_string
2006 Jun 26
2
RoR authentication with IBM Notes/Domino
...# accesses the current user from the session.
# overwrite this to set how the current user is retrieved from the session.
# To store just the whole user model in the session:
#
# def current_user
# session[:user]
# end
#
def current_user
if session[:user]
@current_user ||= session[:user]
else
begin
tokenstring = "LtpaToken="
tokenstring = tokenstring + cookies[:LtpaToken] if cookies[:LtpaToken]
OpenURI.open_uri(''http://[your domino server here]/[your database]/[some
page that returns the username]'',
"Cookie" => tokenstring) do |http|
@current_user = http.read.stri...