Git Product home page Git Product logo

adobeio-authentication-java-sample's Introduction

adobeio-authentication-java-sample

Simple code that demonstrates how to authenticate against adobe.io using Java. Read the blog article explaining this.

How to use this code

There is some setup that you have to do.

  1. Create a "secret.key" file based on the private/public key you made for the Adobe.io integration
  2. Copy values from the Adobe.io Console
  3. Copy a property ID from the Launch UI
  4. Decide whether you want to spy on traffic using Charles or another proxy
  5. See notes on Debugging further down
  6. Run

Debugging

You can use Charles (or another proxy) to debug traffic between the app and Adobe IO.

Make sure you set the PROXY_HOST and PROXY_PORT constants correctly. The actual choice of using a proxy or not happens when you create the httpClient on line 74 of the AppTest class. Just use the HttpClientBuilder of your choice.

Notes

I am using the Launch API to check whether my access works.

If you want to use any other API, you need to change metaContexts, apiHostFQDN, and apiEndpoint, accordingly.

Code quality: this is the most appalling spaghetti-code I have written in a long time. This was deliberate. I want to show exactly which steps need to be taken in what order.

Feel free to refactor to your standards.

adobeio-authentication-java-sample's People

Contributors

janexner avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

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.