🛋️
Simple OAuth Java Framework
  • SOFA - Simple OAuth 2.0 Framework for Authentication (Freeware)
  • Quick Start
    • ⬇️Downloads
    • 🚀Installation
    • 🐞Logging / Debugging
  • Hints and Tips
    • ❓FAQ
    • ⚒️Microsoft Azure Registration
    • ⚒️Google Cloud Registration
    • ⚒️Integrate With Non-Java Code
  • GitHub
    • JavaDoc Documentation
Powered by GitBook
  1. Hints and Tips

Integrate With Non-Java Code

How to integrate SOFA with other languages

PreviousGoogle Cloud Registration

Last updated 1 year ago

LotusScript (HCL Notes/Domino)

LotusScript to Java (LS2J) allows you to call Java code directly from your HCL Notes/Domino application code.

Step 1: Download SOFA

  • and rename the file SOFA.jar to SOFA.zip

Step 2: Import the SOFA classes into HCL Domino Designer:

  • Expand Code > Script Libraries

  • New Script Library: Create a new library (e.g. "OAuth-SOFA-Java") of Type Java

  • Import > Archive and select the directory with the SOFA.zip file from the previous step

  • Save the script library

These Java class files will be stored in the background. There will be no visible information in HCL Domino Designer.

Step 3: Use the code

Add the following two statements in your LotusScript code:

'-- LotusScript to Java Connector
UseLSX "*javacon"

'-- SOFA Java Classes
Use "OAuth-SOFA-Java"        '-- Script library from step 2

Sample Database

⚒️
Download SOFA
512KB
SOFA Example.nsf