I am using CMIS 1.0 in alfresco 4.2 to create content download URL as below. I am rendering this URL on custom share page.
http://myserver/alfresco/api/-default-/public/cmis/versions/1.0/atom/content/spp.log?id=db88f5b8-cf95-40b5-9880-bf953648788c;1.1
But it asks for user credentials. I tried to use another way but it also asks for username & password.
http://myserver/alfresco/api/-default-/public/cmis/versions/1.0/atom/entry?id=db88f5b8-cf95-40b5-9880-bf953648788c;1.1
Is there any way I can download content without getting username/password popup?
Assuming the name of the file you want is "spp.log", then the URL to experiment with should be as follows to the best of my knowledge:
https://myserver/share/proxy/alfresco/cmis/i/db88f5b8-cf95-40b5-9880-bf953648788c/content/spp.log
I appended ticket to cmis atompub url and it works.
http://myserver/alfresco/api/-default-/public/cmis/versions/1.0/atom/content/spp.log?id=db88f5b8-cf95-40b5-9880-bf953648788c;1.1&alf_ticket=TICKET_121Y8467435345
Related
I have a website with the name of technotecode and address is http://www.technotecode.in.
In my site around 176 people are registered, when user open his profile page URL Look like this
www.technotecode.in/user/username.aspx
Instead of above URL I want to modify URL like this
username.technotecode.in
Any one suggest me how to achieve this
You can try below url here its explain some basics about URL rewrite using controller
How to create subdomain with username using C# and asp.net?
I have a very simple question, rather I am just curious.
I have about 2000 pages of the url format somewebsite.com/ShowProduct.aspx?ID=223 . This particular url has a page title as 'Walking sticks for elders made from durable steel'.
Can I use URL Rewriting to convert this to a url like somewebsite.com/walking-stick-for-elders ? Also will I have do it dynamically for 2000 pages or is there any expression that can be used?
You need to have some thing which uniquely indentifies URLs just like Stackoverflow does it.
ASP.NET Web Forms URL Rewriting capability
See this question URL - Where from URL you get its for question then there is a question id and then description. I suggest you do the same.
If you are using ASP.NET 4.0 or higher version then you can do that type of URL routing very easily.
Like from this URL - http://weblogs.asp.net/scottgu/url-routing-with-asp-net-4-web-forms-vs-2010-and-net-4-0-series
There is also a asp.net friendly URL package form where you can write URls.
http://www.hanselman.com/blog/IntroducingASPNETFriendlyUrlsCleanerURLsEasierRoutingAndMobileViewsForASPNETWebForms.aspx
RouteConfig.RegisterRoutes(RouteTable.Routes);
If each product name is unique and stored inside the database you can easily route each SEO friendly URL to productID without manually inputing a new route in the Routing table.
I am making an application with the Google Maps API. I want to be able to have one person on a computer, watch what another person has edited to a map. I am thinking of passing information of the map to a Google Fusion Table. The other person will be able to see everything as a layer. I would like for the program to just run from the user's browser and not build a website for it.
To edit the fusion tables, I need to gain access/tokens. I am currently trying to use these there JavaScript to accomplish this. ScriptSample.html, oauthWindow.html, and gwt-oauth2.js. This is the working example.
When I run them, I get am error that says the redirect URI is incorrect. It says the file I use to redirect does not have authority. My first obvious question is:
How do I give that file authority to redirect?
In my API console, I have it set up as a client-side web application. Should I change it to an installed application?
Currently I have the following settings:
my JavaScript origin is: https://localhost
redirect URI: https://localhost/oauthWindow.html
Thanks
There's no problem with using a localhost url for Dev work - obviously it needs to be changed when it comes to production.
You need to go here:
https://developers.google.com/accounts/docs/OAuth2
and then follow the link for the API Console - link's in the Basic Steps section. When you've filled out the new application form you'll be asked to provide a redirect Url. Put in the page you want to go to once access has been granted.
When forming the Google oAuth Url - you need to include the redirect url - it has to be an exact match or you'll have problems. It also needs to be UrlEncoded.
I have created a facebook application to add a page tab in any facebook page.
for this i have a pagetab name in facebook integration of application's setting part.
Suppose i have added the name as "MyFbTab"
Now the problem is when someone add my application to his page then a tab will be added with name MyFbTab , but i want to ask user for a name and then the tab created with the name entered .
I am using facebook js sdk for this
So please help regarding to fb js sdk
I have found a method for this in php sdk but want to do this in js sdk
regards
You can use the API to change the name given to an installed page tab, see here:
https://developers.facebook.com/docs/reference/api/page/#tabs
Short version, make a POST request to
/PAGE_ID/tabs/APP_ID?custom_name=MyPageTabName&access_token=PAGE_ACCESS_TOKEN
{edit}
In the Javascript SDK you won't be able to do this directly because the Javascrtipt SDK will be using the user's access token and you'll need to make that call with the page access token you retrieved from the user's /accounts connection earlier.
OAuthException "(#210) Subject must be a page." has an example of someone using Jquery to take the page access token and make the API call that way. In their case they're using it to install a tab rather than edit an existing one, but it's almost exactly the same for your problem
I want to hide or modify the url extension by default it is set to aspx. Can it be modified in asp.net
You have to use URL rewriting.
http://weblogs.asp.net/scottgu/archive/2007/02/26/tip-trick-url-rewriting-with-asp-net.aspx
Probably you're trying to create friendly urls. If this is the case you need to use "URL rewriting". We could give you more info if you tell us which version of the .NET framework you're using and the version of the IIS.
Here you'll find a general definition of url rewriting. Once you provide extra information about your infraestructure we can point you to the correct tool.