[ 
http://jira.amdatu.org/jira/browse/AMDATUAUTH-17?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ivo Ladage - van Doorn updated AMDATUAUTH-17:
---------------------------------------------

    Comment: was deleted

(was: Preapproved request tokens should be supported by the OAuth server in 
case the identity of the user is known. So the OAuth server should facilitate a 
servlet (similar to the request token servlet) that also distributed request 
tokens, but flagged with a special 'pre-authorized' flasg in case the request 
could be authenticated against a known user and the user approved the consumer 
before. So an additional query argument in the request token should be enough. 
The consumer is known, the users identity is known and the fact that the user 
did approve the consumer to access resources on its behalf. So:

- The consumer registry should store a list of users that authorized the 
consumer to access its resources on its behalf
- The request token servlet should be enhanced with an additional 
'preapproved=true' parameter to request a preapproved request token
- In case a preapproved request token request comes in, the OAuth server 
verifies that the users identity is known and that he did explicitly give 
approval to the consumer to access its resources before. If so, a request token 
is generated with the property 'oauth_token_authorized' already set to true and 
the userid.
- The consumer can now directly exchange the request token for an access token 
as it is already authorized)
    
> Support preapproved request tokens for 2-legged OAuth
> -----------------------------------------------------
>
>                 Key: AMDATUAUTH-17
>                 URL: http://jira.amdatu.org/jira/browse/AMDATUAUTH-17
>             Project: Amdatu Auth
>          Issue Type: New Feature
>          Components: OAuth server
>    Affects Versions: 0.1.0
>            Reporter: Ivo Ladage - van Doorn
>            Assignee: Ivo Ladage - van Doorn
>              Labels: blueconic
>             Fix For: 0.2.2
>
>
> Gadgets rendered in the Amdatu OpenSocial container usually will want to use 
> 2-legged oAuth with preapproved request tokens. To support this the following 
> enhancements need to be implemented:
> - Add a servlet to the oAuth server that facilitates generating preapproved 
> request tokens
> - a addModule callback to add gadgets to the preapproved gadget store
> As an example the course gadget should use this new 2-legged approach. The 
> friends gadget should use the full blown 3-legged approach (see 
> http://jira.amdatu.org/jira/browse/AMDATU-211)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
http://jira.amdatu.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        
_______________________________________________
Amdatu-developers mailing list
[email protected]
http://lists.amdatu.org/mailman/listinfo/amdatu-developers

Reply via email to