Can someone explain why request tokens must be exchanged for access tokens after user approval? Why not pretend the request token is the access token once the user has approved access?
request and access tokens in oauth
387 Views Asked by David K. At
2
There are 2 best solutions below
1
dajames
On
The oauth system checks the request token and checks whether the access requested is permitted for that user. It then issues an access token (valid for a certain period) and digitally signs it.
The signature is important, as that is what shows that the system agrees that the requester is permitted the access that he has requested.
Take a look at: http://hueniverse.com/oauth/ for an easy-to-swallow guide to how the whole thing works.
Related Questions in SECURITY
- HTTPS configuration in Spring Boot, server returning timeout
- HSM ZKA control mask values
- OWASP Amass Subcommands
- Is there a need for BPF Linux namespace?
- Error when trying to execute a binary compiled in a Kali Linux machine on an Ubuntu system
- When sanitize/encode while implementing tags system like on SO
- spring security version in spring-boot-starter-security
- I am currently trying to implement a rudimentary firewall from a video I watched but the nimda worm detection is not working and i do not know why?
- Is it possible for `sudo` to fail temporarily with the correct password? Hacking suspected
- Is it viable proxying all my mobile apps requests, to some kind knowing that a request is coming from a secure source
- What abilities should I concentrate on while bug hunting, and how can I improve the quality of my bug bounty reports?
- System.ArgumentOutOfRangeException: I passed this error in every single program
- How to prevent users from creating custom client apps?
- Does server-side content security policy exist for youtube video player API, app, mod apks and website?
- Can we pass a hostname/IP address as a query string in a GET request in REST API
Related Questions in OAUTH
- Lambda endpoint for the Google OAuth callback does not recieve the access_token
- Miro oauth api throws error 401 Invalid authorization code
- Error from Identity Provider - OIDC Scope Error
- get refresh token in axios interceptor
- How would single sign-on work for my multi-tenant application?
- How to get OAuth2 Access token from Postman
- How to use Oauth in order to log‑in on .googleapis.com on almost any arbitrary endpoints domains from the web browser?
- How to fix common 500 internal server error when use POST method on NEXTJS
- How to use a different account for OAuth with dbt-core and profiles.yml?
- ASP.NET Core Google external login issue
- Implementing IDP Initiated Flow Using OIDC
- Migration of UseOAuthAuthorizationServer from .Net Framework to .Net8
- Django Allauth Bad Request Error, Error Retrieving Access Token: Invalid Grant
- angular oauth 2 oidc doesn't work with github idp
- Handling oauth in flutter app without browser
Related Questions in PROTOCOLS
- Python Client-Server Communication with Protocol
- Protocol 43200 after unpacking received data
- Creating a Public Typealias to Combine Multiple Protocols in One Swift Package/Target and Conforming to It in Other Targets
- Automotive: Can we design a secured PDU which is beyond 8 bytes and send it using CAN TP?
- Subtle protocol difference
- What type of communication protocol should I use for a shortlived data stream to an web application
- Firefox - Allowing about: protocol
- How to scan and message devices connected to OpenThread border router from Android app?
- v2gexi protocol Data parshing from pcap file
- "Encountering 'protocol busy' error with node-open-protocol-desoutter in Node.js when performing screwing actions
- Cannot Convert Custom ExpyTableView Type in Swift
- Swift: Singleton class "extends" from protocol
- Use a protocol rather than a struct as an (optional array) extension?
- Is there a way to encapsulate certain properties in a Swift protocol so they aren't visible to users of the protocol?
- Understanding “Finding the Dynamic Type in a Generic Context”
Related Questions in AUTHLOGIC-OAUTH
- Rails with authlogic and omniauth
- Whats wrong with installing facebooker rails?
- OAuth with authlogic and twitter. Doesn't redirect properly
- 401 error when using authlogic oauth
- authlogic_oid redirecting to /user_sessions#index instead of /user_session#create
- Authlogic_Oauth calling GET /user_sessions
- Authlogic_OAuth fails with error "uninitialized constant UserSession::OAuth" in Rails 3
- request and access tokens in oauth
- single-sign-on authentication using Facebook on Rails -- AuthLogic or Devise?
- Sending a tweet using Authlogic-OAuth
- How do I add a user model to my application so data is "user" specific in my Rails app
- optimistically save session in authlogic
- django base64 decode encode returns different value
- Configuring authlogic-oauth with google
- Issue with accepts_nested_attributes_for while using authlogic_oauth
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Short Answer : To authenticate the Application.
Refer to YouTube's OAuth Process Flow Diagram
OAuth is a 3-Legged protocol. In this particular case, YouTube needs to authenticate two different entities - a) The user and b) The application who needs accss.
Now, after the user grants access (Step 10 in the diagram), YouTube knows that "User x wants to grant application Y access to YouTube". But it hasn't yet verified application Y. A rogue application can perform all the steps up to step 10 pretending to be a valid, known application - and such an action must be prevented.
In the last 3 steps, the application verifies itself to YouTube by signing the request. Once this is done, YouTube can safely provide an access token to the application.