Create app from web page - redmine

I have a webpage with a link, this link will redirect me to a new instance from my cartridge, for example my link will redirect me to a Redmine application with administration interface, (such connected user have a new instance from redmine) in bakground I will execute in openshift :
rhc create app redmine
So any ideas how to do that?
thanks

I think you would be better off using the REST API than executing commands: https://access.redhat.com/site/documentation/en-US/OpenShift/2.0/html/REST_API_Guide/

Related

OAuth authentication for Google Calendar API with Python

I am writing an application in Python that should be able to create and modify events in a Google Calendar according to the data in a Google Sheet.
As I have almost no experience with these APIs, I am following this simple guide on the Google documentation https://developers.google.com/google-apps/calendar/quickstart/python#. I enabled the Calendar API in the Developer Console of my project and installed the Google libraries as explained in Step 1 and Step 2. When I try to run the quickstart - which I simply copied from the guide - the script correctly opens up a window in my browser (Google Chrome) asking to give permission to my application to access the calendars. When I click on "Accept", however, I get an error page saying that "localhost didn’t send any data. ERR_EMPTY_RESPONSE". No credentials are stored in the ~/.credentials folder, as it should happen according to the script. Moreover, the execution of the script hangs at the point of authentication. Where could the problem be?
After following the Python Quickstart setup guide,
make sure you're running a local webserver like
python -m SimpleHTTPServer 8080
After that my python script ran without a hitch:
console output:
noogui#noogui-dpg:~/Downloads/calendarquickstart$ python calendarquickstart.py
Getting the upcoming 10 events
2018-12-23T11:30:00+08:00 Foo Fighters Concert

trying to setup TinyWebDB on google cloud, but deploy not working

I am trying to follow the instructions on this page, and they are working great, until the part where I deploy from my Google App Engine Launcher. When I click deploy I should see something like this:
But instead, I see something like this:
and the end result is that my app doesn't get deployed to xxxxxxx.appspot.com, it redirects me to http://localhost:8080/?code=4/EfmizPdAPVDgoSInA8mS1KVOvQTkWX4ziFnEpG3XKxA#
I'm a begginer with this kind of tech, please, any suggestions on how to troubleshoot?
Found the answer here. In my case, what worked was to first disable the app in the App Engine Launcher, and only then hit deploy. First time I tried, it authenticated, then second time I deployed, it deployed successfully. Thanks Arnie.
In case, I post his other suggestions:
1) remember to give your google id access to less secure apps.
2) remember to go to appspot.com or https://appengine.google.com/ and accept terms and conditions. Your project should also be active on https://console.developers.google.com/project
3) use correct versions of python and google app engine SDK
4) Before hitting deploy button on google app engine stop the app from running on your local host. It will NOT deploy while it is running locally on local host.

Django Allauth and Google

I've tried to add google login to my web application using django-allauth.
I added to my google application the following callback_uri:
"http://localhost:8000/accounts/google/login/callback"
since i'm running tests on my development server (localhost) and i don't wanna use https.
Even though, i get a 'redirect_uri_mismatch' saying that my redirect URI doesn't match any registred redirect URI.
Does anyone have any ideea about what causes this?
Thanks for your time.
Later Edit:
Using 127.0.0.1 instead of localhost solved this problem.
Recently I ran into problems trying to get Google+ to work as well. I finally got it working. I made some updates to the documentation so it's a bit easier to use. See if using the updated allauth google docs you can get it to work.
Have you try doing the following:
1. Go to the Google Developers console -> Api $ auth -> credentials
2. You should see "Client ID for web application" click "Edit Settings"
3. Change your "Redirect URI" to "http://localhost:8000/accounts/google/login/callback"
Should work after that let me know if it doesn't.
Cheers,
Dan

Is it possible to run an application from a remote server on a website?

I have a website that I would like the customers to navigate to a page where it runs a program that I wrote. However, the program is on a separate server. How might I run the application from that remote server onto the server that hosts the website?
It looks like ideally I'll have my web host as GoDaddy.com and I'd like to run my application from that website.
Any thoughts?
What kind of technology are you employing to deploy the apps? ASP? PHP?
It seems that you were actually trying to "Window" the app on another server to your current site, if that's the case you can just simply link the app inside an iframe of your site.
Reference -http://www.w3schools.com/tags/tag_iframe.asp

How to run appfacotry in local machine?

I have downloaded WSO2 appfacotry and ran it locally for testing purposes. It first gives carbon login and in the running application list I could see the /appmgt jaggery application is running. Then I tried to go to the url through the link provided in Action column in that application list. Initially I was routed to http://{some_ip_address}:9763/appmgt/ and then I was re routed to https://appfactory.example.com:9443/samlsso which gives me error. (because I don't have appfacotry.example.com domain.) How can I run appfactory without this faulty URL?
Here's documentation on installing App Factory: https://docs.wso2.com/display/AF201/Installing+On-Premise
Also, note that there is now a hosted version, which you can use in the cloud with no configuration required: http://wso2.com/cloud/app-cloud/
Other than the 3rd party tools mentioned above, you need App Factory, AS, API manager, Stratos Controller and ELB to have all App Factory features