[OPENAM-15554] 6.5.2 docs for SAML v1.x configuration require update for generation of site id Created: 15/Oct/19  Updated: 16/Oct/19  Resolved: 16/Oct/19

Status: Closed
Project: OpenAM
Component/s: documentation
Affects Version/s: 6.5.2, 7.0.0
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Lawrence Yarham Assignee: Cristina Herraz
Resolution: Won't Fix Votes: 0
Labels: documentation
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Rank: 1|hzz9en:


Bug description

Attempting to follow https://backstage.forgerock.com/docs/am/6.5/saml1-guide/#saml-1-own-site-id results in a NoClassDefFoundError for com/sun/identity/shared/encode/Base64

How to reproduce the issue

  1. Deploy an AM server, embedded config and user store.
  2. user the following command from the above document: e.g.: 
    java -cp forgerock-util-24.0.8.jar:openam-shared-6.5.2.jar:openam-federation-library-6.5.2.jar com.sun.identity.saml.common.SAMLSiteID http://idp.amtest2.com:9080/access
Expected behaviour
A site ID value is returned.
Current behaviour
Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/identity/shared/encode/Base64
	at com.sun.identity.saml.common.SAMLSiteID.generateSourceID(SAMLSiteID.java:99)
	at com.sun.identity.saml.common.SAMLSiteID.main(SAMLSiteID.java:119)
Caused by: java.lang.ClassNotFoundException: com.sun.identity.shared.encode.Base64
	at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
	... 2 more

Work around

Command needs to include openam-keystore jar, e.g.: 

java -cp forgerock-util-24.0.8.jar:openam-shared-6.5.2.jar:openam-federation-library-6.5.2.jar:openam-keystore-6.5.2.jar com.sun.identity.saml.common.SAMLSiteID http://idp.amtest2.com:9080/access

Comment by Cristina Herraz [ 16/Oct/19 ]

AM 7 doesn't support SAML 1 afaik ?

Comment by Andy Hall [ 16/Oct/19 ]


Comment by Andrew Vinall [ 16/Oct/19 ]

Bug Triage: SAML v1 to be removed in AM-7.0.0

Comment by Cristina Herraz [ 16/Oct/19 ]


It is removed from AM 7 docs already. So I'll take 7.0.0 as affected versions.

Comment by Cristina Herraz [ 16/Oct/19 ]

Oh it's closed. Won't do anything else then. Thanks x2.

Generated at Sat Feb 27 22:11:16 UTC 2021 using Jira 7.13.12#713012-sha1:6e07c38070d5191bbf7353952ed38f111754533a.