Topic
4 replies Latest Post - ‏2013-01-02T06:19:43Z by SystemAdmin
SystemAdmin
SystemAdmin
2327 Posts
ACCEPTED ANSWER

Pinned topic “Invalid parameter value for origin: Missing authority:file://” -Mobile App

‏2012-12-24T18:18:12Z |
I am trying to use oauth2.0 in order to authorize users for accessing google api but I get the following error:

“Invalid parameter value for origin: Missing authority:file://”

It seems like the origin specified by worklight is file:// instead of something like http://
How can I change the origin?

Thank you in advance!
  • raanan
    raanan
    50 Posts
    ACCEPTED ANSWER

    Re: “Invalid parameter value for origin: Missing authority:file://” -Mobile App

    ‏2012-12-25T09:19:35Z  in response to SystemAdmin
    Hi.

    There is a lot of missing data.
    In the Google API Console, what Client Application Type did you choose? What Installed application type did you choose?
    • SystemAdmin
      SystemAdmin
      2327 Posts
      ACCEPTED ANSWER

      Re: “Invalid parameter value for origin: Missing authority:file://” -Mobile App

      ‏2012-12-31T03:55:05Z  in response to raanan
      I chose as client application type "Installed Application" and as installed application "Other"
      • raanan
        raanan
        50 Posts
        ACCEPTED ANSWER

        Re: “Invalid parameter value for origin: Missing authority:file://” -Mobile App

        ‏2012-12-31T08:19:50Z  in response to SystemAdmin
        Hi.
        This is more an issue of implementing Google OAuth 2.0.
        You can read about it at:
        https://groups.google.com/forum/#!msg/google-tasks-api/V0xUIPSiy48/pLAZonN7t-UJ
        and the solution on:
        http://code.google.com/p/google-api-java-client/
        • SystemAdmin
          SystemAdmin
          2327 Posts
          ACCEPTED ANSWER

          Re: “Invalid parameter value for origin: Missing authority:file://” -Mobile App

          ‏2013-01-02T06:19:43Z  in response to raanan
          So what are basically the steps to get it work?
          I still get this error on my device although it works find as a web application (I have tried in on jsfiddle).
          Also, can this be done without the childbrowser plugin?

          Thanks