Google Groups Home
Help | Sign in
Making the Realm visible
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
cappelaere  
View profile
 More options May 2, 11:17 am
From: cappelaere <cappela...@gmail.com>
Date: Fri, 2 May 2008 08:17:43 -0700 (PDT)
Local: Fri, May 2 2008 11:17 am
Subject: Making the Realm visible
It seems very diifficult to get access to the OAuth Realm passed by a
Consumer Application to a Provider.
Would you think that it would be nice to expose it as convenience
function in the request_proxy base code (where it gets thrown out)?

it could be captured in header_params before the reject:
        @realm = oauth_params['realm']
        oauth_params.reject! { |k,v| k !~ /^oauth_/ }

and we can simply add an attr_accessor: to request_proxy/base.rb
       attr_accessor :request, :options, :realm

Now client_application.rb can have access to the realm:
      logger.info "Realm: #{signature.request.realm}"

WDYT?
Thanks,
Pat.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Seth Fitzsimmons  
View profile
 More options May 2, 12:07 pm
From: "Seth Fitzsimmons" <s...@mojodna.net>
Date: Fri, 2 May 2008 17:07:25 +0100
Local: Fri, May 2 2008 12:07 pm
Subject: Re: [oauth-ruby] Making the Realm visible

+1

Additionally, the Request Proxy should also expose the nonce and timestamp,
as they may have been determined either from the header, query string, or
POST body.  I was initially thinking that the validate method should yield
those in addition to everything else, but I haven't had a chance to dig into
it.

seth


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Pat Cappelaere  
View profile
 More options May 2, 1:09 pm
From: Pat Cappelaere <cappela...@gmail.com>
Date: Fri, 02 May 2008 13:09:26 -0400
Local: Fri, May 2 2008 1:09 pm
Subject: Re: [oauth-ruby] Re: Making the Realm visible

Seth,

It looks like nonce and timestamp are already exposed in my version 0.2.5.
Pat.

From: Seth Fitzsimmons <s...@mojodna.net>
Reply-To: <oauth-ruby@googlegroups.com>
Date: Fri, 2 May 2008 17:07:25 +0100
To: <oauth-ruby@googlegroups.com>
Subject: [oauth-ruby] Re: Making the Realm visible

+1

Additionally, the Request Proxy should also expose the nonce and timestamp,
as they may have been determined either from the header, query string, or
POST body.  I was initially thinking that the validate method should yield
those in addition to everything else, but I haven't had a chance to dig into
it.

seth


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Seth Fitzsimmons  
View profile
 More options May 2, 1:21 pm
From: "Seth Fitzsimmons" <s...@mojodna.net>
Date: Fri, 2 May 2008 18:21:05 +0100
Local: Fri, May 2 2008 1:21 pm
Subject: Re: [oauth-ruby] Re: Making the Realm visible

They are, but they're not yet yielded in the block where we (developers)
determine secrets and return them to the signature validation mechanism.

seth


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2008 Google