RE : Token Service to access a crx/server | Adobe Higher Education
Skip to main content
Level 2
March 18, 2022
Resuelto

RE : Token Service to access a crx/server

  • March 18, 2022
  • 2 respuestas
  • 1229 visualizaciones

Hi,

 

   I am trying to access the crx/server from the cloud dev 

https://author-pXXXX-eXXXX.adobeaemcloud.com/crx/server 

after I completed my testing in local want to test that using the service token the code is in java... attaching the code base

Repository repository = getRepository("https://author-pXXXX-eXXXX.adobeaemcloud.com/crx/server");


TokenCredentials tokenCredentials=new TokenCredentials(" XXXXXXX _ XXXXXX_ XXXXX ");



//Create a Session
javax.jcr.Session session = repository.login(tokenCredentials);

 I was seeing an error 

 

Error:

 

javax.jcr.RepositoryException: Unable to access a repository with the following settings:
org.apache.jackrabbit.repository.uri: https://author-pXXXX-eXXXX.adobeaemcloud.com/crx/server
The following RepositoryFactory classes were consulted:
org.apache.jackrabbit.core.RepositoryFactoryImpl: declined
org.apache.jackrabbit.commons.JndiRepositoryFactory: declined

 

 

 

I would like to know in java which service can be used ... to make this work...

 

 

Thank You,

Sham. 

Este tema ha sido cerrado para respuestas.
Mejor respuesta de aanchal-sikka

Prefer using curl commands or HTTP requests to get info from Cloud server,

 

These APIs are not supported on Cloud

2 respuestas

aanchal-sikka
Community Advisor
aanchal-sikkaCommunity AdvisorRespuesta
Community Advisor
December 4, 2023

Prefer using curl commands or HTTP requests to get info from Cloud server,

 

These APIs are not supported on Cloud

Aanchal Sikka
kautuk_sahni
Community Manager
Community Manager
December 4, 2023

@sham1 Did you find the suggestions from users helpful? Please let us know if more information is required. Otherwise, please mark the answer as correct for posterity. If you have found out solution yourself, please share it with the community.

Kautuk Sahni