Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Example usage of auth widget with call to auth_info api with resulting token from Java.

You'll need to configure your Engage api key (secret) in the src/main/webapp/WEB-INF/web.xml.

There's a minimal web page in src/main/webapp/index.html with the <script> tag and <div> for a embedded auth widget - you'll need to set the name of your application in the JavaScript - or you can copy the JavaScript tag into a page of your own.

There's also an example that does not use any Engage UI widgets in src/main/webapp/no-widget-example.jsp - you'll need to configure your application domain in that page.

The Java Servlet example in src/main/java/com/janrain/example/AuthInfo.java just serves as a destination for the user's browser to be redirected to after logging in, then it calls the auth_info API with that token and displays the results.

To compile and run, just run mvn jetty:run in the top level of the project, assuming you Maven installed. This example uses the servlet-api and commons-io.

Morty Proxy This is a proxified and sanitized view of the page, visit original site.