12-28-2016 10:36 PM
12-28-2016 11:09 PM
Could you please elaborate what exactly you are looking for? Do you mean to invoke login web script through Java code?
12-29-2016 02:46 AM
according to the architecture ,above the repo,it has the public java api ,the rest api is based on it,how can we use it to authenticate
12-29-2016 02:56 AM
What is the use case that you are trying to achieve? Do you have a different front-end system and are you using Alfresco just as a backend repository and you want to connect your front-end to backend alfresco repository?
12-29-2016 07:31 AM
Yes! I want to do this
12-29-2016 08:09 AM
Okay, in that case you can use the out-of-the-box login web script and invoke it from your front-end passing in the required parameters to it.
Take a look at Listing pre-built web scripts | Alfresco Documentation to get to know the available web scripts in Alfresco, from there you should be able to find the login web script.
Let me know if you face any issue for it.
Hope this helps.
12-29-2016 03:46 AM
The public api is an Embedded API , it is used to develop extensions to the Alfresco content application server,create new services in Alfresco, or write customizations .
For example you want to implement a web script, you need other public java api, even so you still don't need login public java API。
So generally you don't need login public java API.
12-29-2016 06:38 AM
You need to be a bit more careful with the naming here since Alfresco unfortunately has created a bit of a mess with naming the APIs.
Java Service API - the embedded Java service-level API used in extensions that integrated directly in the Alfresco Repository, which includes the AuthenticationService for performing login
Public API - the aggregate ReST + CMIS API that can be consumed by external applications to access Alfresco, including initial login/authentication
Cloud Public API - a slightly extended variant of the Public API for talking to the Alfresco Cloud service including an OAuth2 authentication scheme
If you create an extension to the Alfresco Repository and use the Java Service APIs you typically do not need call any authentication because the Repository should already authenticate the user (provided custom web scripts / endpoints aren't explicitly configured to be consumed anonymously). In all other cases you need authentication and should consult the corresponding documentation.
12-29-2016 07:38 AM
I see ,Thank you very much.
12-29-2016 07:40 AM
I see,Thank you very much
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.