Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Google People API Error

Google People API Error

Scheduled Pinned Locked Moved C#
helpsecurityjsonquestionannouncement
4 Posts 2 Posters 2 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    Kevin Marois
    wrote on last edited by
    #1

    I'm refactoring some code that imports Google contacts. This screenshot[^] shows the parameters being sent. It is identical to the previous version, with the exception of the Client Id and Client Secret. Now, for some reason, I'm getting this:

    Google.Apis.Requests.RequestError
    Request had insufficient authentication scopes. [403]
    Errors [
    Message[Insufficient Permission] Location[ - ] Reason[insufficientPermissions] Domain[global]
    ]

    This appears to be complaining about the scope, yet it's hasn't changed. Not sure if that's what this message means. I've been Googling & reading the docs, and I don't see what's wrong. I'm really stuck on this. Can someone point me in the right direction?

    In theory, theory and practice are the same. But in practice, they never are.” If it's not broken, fix it until it is. Everything makes sense in someone's mind.

    OriginalGriffO 1 Reply Last reply
    0
    • K Kevin Marois

      I'm refactoring some code that imports Google contacts. This screenshot[^] shows the parameters being sent. It is identical to the previous version, with the exception of the Client Id and Client Secret. Now, for some reason, I'm getting this:

      Google.Apis.Requests.RequestError
      Request had insufficient authentication scopes. [403]
      Errors [
      Message[Insufficient Permission] Location[ - ] Reason[insufficientPermissions] Domain[global]
      ]

      This appears to be complaining about the scope, yet it's hasn't changed. Not sure if that's what this message means. I've been Googling & reading the docs, and I don't see what's wrong. I'm really stuck on this. Can someone point me in the right direction?

      In theory, theory and practice are the same. But in practice, they never are.” If it's not broken, fix it until it is. Everything makes sense in someone's mind.

      OriginalGriffO Offline
      OriginalGriffO Offline
      OriginalGriff
      wrote on last edited by
      #2

      If you are refactoring code, and it worked before you started, then the obvious thing to do is go back to the original code and compare it to the refactored version - it's quite likely that scope for a variable has changed and it was (or is) "hiding" the required value, or perhaps you a missing a call that you needed before. But without the original and refactored code, there really isn't anything we can do!

      "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt AntiTwitter: @DalekDave is now a follower!

      "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
      "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

      K 1 Reply Last reply
      0
      • OriginalGriffO OriginalGriff

        If you are refactoring code, and it worked before you started, then the obvious thing to do is go back to the original code and compare it to the refactored version - it's quite likely that scope for a variable has changed and it was (or is) "hiding" the required value, or perhaps you a missing a call that you needed before. But without the original and refactored code, there really isn't anything we can do!

        "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt AntiTwitter: @DalekDave is now a follower!

        K Offline
        K Offline
        Kevin Marois
        wrote on last edited by
        #3

        The code is different because Google changed their auth process.

        In theory, theory and practice are the same. But in practice, they never are.” If it's not broken, fix it until it is. Everything makes sense in someone's mind.

        OriginalGriffO 1 Reply Last reply
        0
        • K Kevin Marois

          The code is different because Google changed their auth process.

          In theory, theory and practice are the same. But in practice, they never are.” If it's not broken, fix it until it is. Everything makes sense in someone's mind.

          OriginalGriffO Offline
          OriginalGriffO Offline
          OriginalGriff
          wrote on last edited by
          #4

          That's not refactoring! Refactoring is the process of restructuring code, while not changing its original functionality. The goal of refactoring is to improve internal code by making many small changes without altering the code's external behavior. You need to find out what the new process involves, and upgrade the code to be compliant. At a guess, Google will have a list of changes that need to be made - I'd start there, or ask their tech support.

          "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt AntiTwitter: @DalekDave is now a follower!

          "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
          "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups