Bitbucket Staffbase Test Bitbucket Mirror HTTPS SSH

Mirrors are read-only. Enter this command in your terminal after cloning to update your push URL:

Eyo Plugin Skeleton (Java)

This is a very basic eyo plugin.

Usage

  • set pluginID export EYO_PLUGIN_ID=my.plugin.id
  • set pluginSecret export EYO_PLUGIN_SECRET=abcde12345...
  • build mvn clean package (generates war file in target folder)
  • start mvn jetty:run
  • test with curl localhost:8000/api/eyosso?eyosso=TOKEN

Overview

EyoSSOFacade

Decrypts to payload (user name, locale, ...) provided by the eyo backend. The payload is transferred via jwt. To make decryption work, a valid pluginID (EYO_PLUGIN_ID) and pluginSecret (EYO_PLUGIN_SECRET) must be set via java opts or as environmental variables.

PluginModule

Basic Guice Module.

PluginResource

Jersey API Endpoint receiving the sso call from eyo backend.

ServletContextListener

Sets up guice injection for the current servlet context.

index.jsp

Example view showing the properties obtained during SSO.