#SharePointProblems | Koskila.net

Solutions are worthless unless shared! Antti K. Koskela's Personal Professional Blog

How to generate SAP SF Offline Assertion on a mac?

koskila
Reading Time 2 min
Word Count 287 words
Comments 0 comments
View

Do you want to know how to generate SAP SuccessFactors Offline Assertion on a mac?

Doesn't matter, I'll tell you anyway, because I had to figure it out (again). 😂

This wasn't on my 2026 bingo card, but I better write it down for future reference. And maybe it will help someone else too.

This builds on my previous blog post about generating SAP SuccessFactors Offline Assertion on Windows, but this time, it's for mac users.

Set up

On a mac, it's not THAT different from Windows, but there are some differences.

First, you need to install Java and Maven. You can do that with Homebrew.

brew update
brew install openjdk

sudo ln -sfn /opt/homebrew/opt/openjdk/libexec/openjdk.jdk /Library/Java/JavaVirtualMachines/openjdk.jdk

# Verify
java -version

brew install maven

# Verify again
mvn -version

code $PROFILE
. $PROFILE

echo $env:JAVA_HOME
echo $env:PATH

Then, you can KIND OF follow the instructions from SAP SuccessFactors documentation to generate the Offline Assertion - download the code: SAP note attachment

cd ./SAMLAssertionGen-master/
cd src
code SAMLAssertion.properties

The SAMLAssertion.properties file is where you put your SAP SuccessFactors credentials and other information - something like below:

tokenUrl=https://{tenant-url}/oauth/token
clientId={api key from the OAuth2 client app registration}
userId={service account / api user's username}
userName={Leave empty - will only be considered when userId is null/empty}
privateKey={privateKey from the OAuth2 client key pair}
expireInMinutes={should be something like 5 or 10 - but if you don't want to run this all the time, set it to be 5259488 (10 years)}

For whatever reason, the following command failed in PowerShell, but worked in bash. For what that's worth.

mvn compile exec:java -Dexec.args="SAMLAssertion.properties"

And finally, copy the generated, base64-encoded assertion from the terminal output to use it as needed.

References

Comments

Interactive comments not implemented yet. Showing legacy comments migrated from WordPress.

No comments yet.

Whitewater Magpie Ltd.
© 2026
Static Site Generation timestamp: 2026-09-08T05:14:56Z