Problem creating OAuth2 Client with ssoadm

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Problem creating OAuth2 Client with ssoadm

BAUCHE, VALERIE
Hi
 
I try to create a new Oauth2 client with the following ssoadm command (OpenAM 12.0.0):
ssoadm create-agent -u amadmin -f pwdfile -b clientTest -t OAuth2Client -e /INTERNET/OPENID -D oauthclient.properties
 
And I get an error :
CreateAgent.handleRequest
Message:Plug-in com.sun.identity.idm.plugins.internal.AgentsRepo : impossible de créer l?agent.
 
And this error in IdRepo log file :
ERROR: AgentsRepo.create():Unable to create agents
Message:The attribute name com.sun.identity.agents.config.freeformproperties does not match the service schema
        at com.sun.identity.sm.ServiceSchemaImpl.validateAttrValues(ServiceSchemaImpl.java:471)
        at com.sun.identity.sm.ServiceSchemaImpl.validateAttributes(ServiceSchemaImpl.java:291)
        at com.sun.identity.sm.CreateServiceConfig.createSubConfigEntry(CreateServiceConfig.java:328)
        at com.sun.identity.sm.ServiceConfig.addSubConfig(ServiceConfig.java:348)
        at com.sun.identity.idm.plugins.internal.AgentsRepo.create(AgentsRepo.java:272)
 
The content of oauthclient.properties :
 
com.forgerock.openam.oauth2provider.accessTokenLifeTime=0
com.forgerock.openam.oauth2provider.authorizationCodeLifeTime=0
com.forgerock.openam.oauth2provider.clientType=Public
com.forgerock.openam.oauth2provider.contacts[0]=
com.forgerock.openam.oauth2provider.defaultScopes[0]=
com.forgerock.openam.oauth2provider.description[0]=
com.forgerock.openam.oauth2provider.idTokenSignedResponseAlg=RS256
com.forgerock.openam.oauth2provider.jwtTokenLifeTime=0
com.forgerock.openam.oauth2provider.name[0]=
com.forgerock.openam.oauth2provider.redirectionURIs[0]=http://openam.example.com:18080/openid/cb-implicit.html
com.forgerock.openam.oauth2provider.refreshTokenLifeTime=0
com.forgerock.openam.oauth2provider.responseTypes[0]=code
com.forgerock.openam.oauth2provider.responseTypes[1]=token
com.forgerock.openam.oauth2provider.responseTypes[2]=id_token
com.forgerock.openam.oauth2provider.responseTypes[3]=code token
com.forgerock.openam.oauth2provider.responseTypes[4]=token id_token
com.forgerock.openam.oauth2provider.responseTypes[5]=code id_token
com.forgerock.openam.oauth2provider.responseTypes[6]=code token id_token
com.forgerock.openam.oauth2provider.scopes[0]=openid
com.forgerock.openam.oauth2provider.scopes[1]=profile
com.forgerock.openam.oauth2provider.scopes[2]=mail
sunIdentityServerDeviceStatus=Active
userpassword=clientTest
 
Thanks for your help !
 
Valérie
 
 
 

_______________________________________________
Visit the OpenAM forum at https://forgerock.org/forum/fr-projects/openam/
OpenAM mailing list
[hidden email]
https://lists.forgerock.org/mailman/listinfo/openam