Bug description
Latest script version is not seen if user upgraded to a newer AM version.
How to reproduce the issue
- Installed OpenAM 13 onwards / AM instance
- Edit default OIDC Claims Script ( [Realm] > Scripts > OIDC Claims Script )
/* * Copyright 2014-2017 ForgeRock AS. All Rights Reserved * * Use of this code requires a commercial software license with ForgeRock AS. * or with one of its affiliates. All use shall be exclusively subject * to such license between the licensee and ForgeRock AS. */ import com.iplanet.sso.SSOException import com.iplanet.sso.SSOException <-- adding this to modify the default Script import com.sun.identity.idm.IdRepoException import org.forgerock.oauth2.core.exceptions.InvalidRequestException import org.forgerock.oauth2.core.UserInfoClaims import org.forgerock.openidconnect.Claim
- Upgrade to a newer AM version instance
- Create a new Script ( [Realm]> Scripts > New Script )
Name: Test
Script Type : OIDC Claims Script
Expected behaviour
Latest OIDC script version should be displayed
From Test Script:
/* * Copyright 2014-2018 ForgeRock AS. All Rights Reserved * * Use of this code requires a commercial software license with ForgeRock AS. * or with one of its affiliates. All use shall be exclusively subject * to such license between the licensee and ForgeRock AS. */ import com.iplanet.sso.SSOException import com.sun.identity.idm.IdRepoException import org.forgerock.oauth2.core.exceptions.InvalidRequestException import org.forgerock.oauth2.core.UserInfoClaims import org.forgerock.openidconnect.Claim .......... return new UserInfoClaims((Map)computedClaims, (Map)compositeScopes)
Current behaviour
Modified default OIDC Script is been displayed.
From Test Script :
/* * Copyright 2014-2017 ForgeRock AS. All Rights Reserved * * Use of this code requires a commercial software license with ForgeRock AS. * or with one of its affiliates. All use shall be exclusively subject * to such license between the licensee and ForgeRock AS. */ import com.iplanet.sso.SSOException import com.iplanet.sso.SSOException import com.sun.identity.idm.IdRepoException import org.forgerock.oauth2.core.exceptions.InvalidRequestException import org.forgerock.oauth2.core.UserInfoClaims import org.forgerock.openidconnect.Claim