Results 1 to 4 of 4

Thread: error:insufficient_scope after accessing a resource with bearer

Threaded View

  1. #1
    Join Date
    Mar 2011
    Posts
    28

    Default error:insufficient_scope after accessing a resource with bearer

    After a successfull two way handshake is my client not able to access a protected resource. I allways get a insufficient_scope error.

    Answere after two way handshake:
    {"access_token":"37ded4d3-5278-40b7-b55d-573143d586c7","token_type":"bearer","refresh_token ":"9f772624-cca0-489c-8ba9-e88ccdbf361a","expires_in":43199}

    Request header of the resource request:
    GET /backed/rest/ping HTTP/1.1
    Accept: text/plain, application/json, */*
    Authorization: Bearer 37ded4d3-5278-40b7-b55d-573143d586c7

    Answere from the server:
    WWW-Authenticate: Bearer realm="myprotectedresource", error="insufficient_scope", error_description="Insufficient scope for this resource scopes", scope="SCOPE_TRUST"

    I guess that OAuth can not read the authorization bearer from the resource request authorization header. Can that be possible? Any other solutions for this?
    Last edited by adrian.hoehn; Jun 14th, 2012 at 06:10 AM.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •