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

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

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

    ‏2012-12-25T09:19:35Z  
    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

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

    ‏2012-12-31T03:55:05Z  
    • raanan
    • ‏2012-12-25T09:19:35Z
    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?
    I chose as client application type "Installed Application" and as installed application "Other"
  • raanan
    raanan
    50 Posts

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

    ‏2012-12-31T08:19:50Z  
    I chose as client application type "Installed Application" and as installed application "Other"
    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

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

    ‏2013-01-02T06:19:43Z  
    • raanan
    • ‏2012-12-31T08:19:50Z
    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/
    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