Coder Social home page Coder Social logo

sequencingdotcom / rtp-api-oauth2 Goto Github PK

View Code? Open in Web Editor NEW
3.0 3.0 6.0 20.26 MB

Sequencing.com's OAuth2 code snippets for easy app development with Real-Time Personalization and App Chains

Home Page: https://oauth-demo.sequencing.com/

License: MIT License

C# 9.95% ASP 0.13% PowerShell 4.38% PHP 5.29% Java 29.96% Objective-C 14.52% Perl 5.93% Python 14.37% HTML 3.12% Swift 12.05% Ruby 0.30%

rtp-api-oauth2's People

Contributors

alext-sequencing-com avatar almos avatar andriygedz1993 avatar brandoncolbymd avatar bucefal91 avatar colbymd avatar mplys avatar omazurova avatar peterz-sq avatar professorgatc avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

rtp-api-oauth2's Issues

Getting "No client id supplied" exception

Hello,
I am trying to get the oauth flow working in my android app.
I followed the code snippet that is provided in this demo app, but i am getting an exception
{"error":"invalid_client","error_description":"No client id supplied"}

Here are the steps to recreate:

  1. I get the login screen when i launch the app
  2. i registered for an account, and then i login.
  3. in the onloadresource method in "OauthWebViewClient" class,
    • first iteration: url = authapp://Default/Authcallback, but its not authorized, so it goes into the first if loop,
      if (null == Uri.parse(url).getQueryParameter("code")) {
      // We just being the oauth2 authorization loop. So we redirect the client to
      // Sequencing website and ask the user to allow our app to use his data.
      view.loadUrl(getOauth().getLoginRedirectUrl());
      System.out.println(getOauth().getLoginRedirectUrl());

            } 
      
    ;
    -second iteration : url = https://sequencing.com/oauth2/authorize?[scope=demo,%20state=99cefce0cac5d2235fe9a6a4cf9d2e36,%20response_type=code,%20client_id=something,%20redirect_uri=authapp://Default/Authcallback]

I even tried to add the client id , but it doesn't work. Do i need to make any more changes to the code than what is present in this demo code?

Please help.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.