Git Product home page Git Product logo

alfresco-oauth-sample's Introduction

This is a Sample Alfresco OAuth Application demonstrating the server-side web application flow

Getting started

Follow these instructions:

Note: You don't need to install any other software (only a Java VM and web browser is required).

License

Copyright (C) 2012 Alfresco Software Limited

This file is part of an unsupported extension to Alfresco.

Alfresco Software Limited licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

alfresco-oauth-sample's People

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

alfresco-oauth-sample's Issues

cmis:value for cmis:description

Dear All,

I'm getting list of documents by GET http request:

https://api.alfresco.com/'+ CompanyName +'/public/cmis/versions/1.0/atom/children?id='+FolderId;

thus cmis:value for cmis:description of listed files is not returned and requires additional
request for each document.

Is there way to tell Alfresco Cloud to fetch cmis:value for cmis:description of all chills requested?

thanks,

Create Entity or Upload file

Dear All,

please show an example of creating file entity or file upload in AlfrescoСloud storage.

Thanks in advance,

DELETE file remains Zero length in cloud

Dear All,

If I do DELETE http request to
https://api.alfresco.com/'+ CompanyName +'/public/cmis/versions/1.0/atom/content?id='+FileGuid

request comes through smoothly! but file on remote is NOT deleted but becomes Zero length!

please suggest on how to remove file or move it to trash.

thanks in advance,

API plan limit exceeded

Dear All,

what might be a reason for the below error?

HTTP ERROR 500: API plan limit exceeded'#$A#$A'Reason: Not Setl7xxe92c6ae1abf045fc85ec338418961bdd|1db2437af8b34992f57aedbb22fe27838f42d019|quota?ok|rate?failed|

thanks,

tokens validity period

I'm doing refresh of tokens after initial Oauth and
getting
{
"access_token":"28f88a82-a62b-4e44-9312-16a4a5d2e71c",
"token_type":"Bearer",
"expires_in":3600,
"refresh_token":"e98f372c-e5a6-49e5-ba55-a0358d877eb2",
"scope":"public_api"
}

but my application will request new Oauth authentication again next day it runs.
Is there way to setup refresh_token validity for a longer period of time?

Respectfully,

cmisaction for update property

Dear All,
what cmisaction for update property with REST would be?

e.g. I need to update cmis:lastModificationDate of document.

I'm trying to make POST with multipart-data at
https://api.alfresco.com/'+ CompanyName +'/public/cmis/versions/1.0/atom/content?id=' + FileGuid
with parameters like :

        '--' + BOUNDARY +  CRLF +
        'Content-Disposition: form-data; name="propertyValue[0]"' + CRLF +
        'Content-Type: text/plain' + CRLF+CRLF +
        DateTimeToStr( FileTimeToDateTime(timestamp^) )  + CRLF +

        '--' + BOUNDARY +  CRLF +
        'Content-Disposition: form-data; name="propertyId[0]"' + CRLF +
        'Content-Type: text/plain' + CRLF+CRLF +
        'cmis:lastModificationDate' + CRLF +

        '--' + BOUNDARY +  CRLF +
        'Content-Disposition: form-data; name="cmisaction"' + CRLF +
        'Content-Type: text/plain' + CRLF+CRLF +
        'updateProperty' + CRLF +
           '--' + BOUNDARY + '--' + CRLF

but I'm getting error from server - Unknown Action!

thanks in advance,

OAuth issue

I'm writing Desktop application for integration with Alfresco.

callback address is : http://localhost:8181/oauthsample/mycallback.html
and I'm running local HTTP server in my application.
Java VM installed on client host.

on get request:
https://api.alfresco.com/auth/oauth/versions/2/authorize?client_id='+ App.Key +'&redirect_uri=http%3A%2F%2Flocalhost%3A8181%2Foauthsample%2Fmycallback.html&scope=public_api&response_type=code'
I get OAuth form with login and password.

But since I input valid login and password, I'm getting web page with message - Authentication failed

Could it be just administrative issue with my account being frozen by Alfresco or I'm doing something wrong?

Thank you in advance,
dmitry

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.