How to download a skype recorded session in linux? - skype

I need to download a video that has been recorded in a Skype group with a computer that I only have access through command-line (with ssh).
in the Skype desktop app, it's only possible to click on the download button and save the video in the internal disk. as I don't have access to a graphical interface, this option is not available.
the other option may be to use the Skype export chat history and files. I did that and got a download link. but when trying to get that file with wget in the terminal I get an "Authentication failed" error.
Resolving neu1-api.asm.skype.com (neu1-api.asm.skype.com)...
52.114.77.24 Connecting to neu1-api.asm.skype.com (neu1-api.asm.skype.com)|52.114.77.24|:443... connected. HTTP request
sent, awaiting response... 401 Unauthorized
Username/Password Authentication Failed.
is there a way so that I can download the videos using the command-line or login to Skype so that I can download the exported file?

Related

HTTP GET request to web app hosted on corporate network

I am new to HTTP requests and I am trying to send a GET request to the login page of Oracle Apex Developer which is on a private company server.
I think the browser uses cookies which can expire because when I try to access the URL in the browser (substituting the servers IP as host name), then I first get a prompt to enter my company SSO username and password. This works fine and I can then get the page in the browser. I am trying to replicate this in python but nothing is working for me. I have even tried using HttpNtlmAuth but to no avail.
I could not see anything in Chrome network tab to indicate what the browser is doing and I have tried to simulate most of the HTTP headers in my python code (see picture below)
Here is what the browser was doing once I entered my username and password to get the 200 status code:
Any ideas what I am missing here?
Thanks

How to debug Rocket Chat error during oauth with custom service?

I am setting up a custom oauth server with Rocket Chat (Meteor). Almost everything is okay, however Rocket Chat fails when trying to query the /oauth/token endpoint to log the user in.
The endpoint is not touched, so I guess the requests is not even sent. The
error is thrown here and the message is Parse Error.
I've tried to read the meteor/http code, but I did not manage to figure which package could be responsible to this Parse Error.
I can't figure the right way to get more info. Edit: I've tried to install Rocket Chat locally and could not reproduce. This error only happens on a live instance.
Any idea what could cause this issue or what step I could take to debug this?
This error "Parse Error" can appear when the URL is not correct but still a valid URL. The endpoint will return HTML instead of a valid JSON and thus produce this error.
Example: you host your Rocket Chat on "my-chat.com", and use "localhost:3000/oauth", on your own development machine, as your oauth server.
This will fail, because Rocket Chat will query "localhost:3000", but from the Rocket Chat standpoint localhost is the server it is hosted on, not your own machine. So the request will hit Rocket Chat itself instead of your local development server and produce this error.

Google Developper Console—Changing authorized URI from command line

So, here's the context:
I'm launching apps from Shiny Proxy, which is a server service for R applications (but that's not the core question).
What this service does is launching a new webpage each time a user connects, with the url (for example) http://<url>:<port>/app/01_hello/endpoint/xyzabcdef/, for example — the id of the endpoint being randomly assigned, the stable url being http://<url>:<port>/app/01_hello.
I have on this app (01_hello), a button that sends a request for Oauth. If I am on an already launched app, I can go to the google dev console, and manually enter http://<url>:<port>/app/01_hello/endpoint/xyzabcdefghijklm/ as an authorized URI. And that works.
The thing is that each time I relaunch this app, a new endpoint id is randomly generated. So I can't anticipate what the endpoint will be for future user.
I can catch this id with JavaScript, and send it back to my server.
So my question is: once I get this id back on my server, is there a way to programmatically (in command line) send this url/endpoint/id to the developper console so that this url is authorized?
Maybe there is another (more elegant) way to do this?
Any idea is welcome.

R server with REST API and user authentication

I need help from more exprienced R users. I am looking for R server app with REST API. I would like to send and run R script using HTTP and retrieve results.
The important thing is user authentication and authorization - scripts should be executed in separated workspace (like user home directory). The best solution will be user system account authentication/authorization.
Does anyone know such application?
I found application like OpenCPU but without authentication support.
In details:
r server app should be standalone application running on machine with Linux. It listen on HTTP port for request. Clients applications comunicate with server only via REST API. To execute R code, client must authenticate first using system account username and password. After succesful authentication user have access to their own home directory (or other dedicated workspace dir). User can read/writes files in workspace from R code. The R code to execute is sent as plain text in POST request. Eventualy it could be run as script from user's workspace directory. Support for full R functionality is required
The general idea is similar to RStudio Server or JupyterHub except the client is not web browser but external (for example Java) application.
Unfortunatelly I didn't found reasonable API documentation for RStudio or JupyterHub
I have accomplished the same using RApache
http://rapache.net
You can run your R scripts by making a Rest call and can also pass arguments (GET and POST) to your scripts
<Location /helloworld>
SetHandler r-handler
RFileHandler /path/helloworld.r
</Location>
Here helloworld will be API endpoint and it will in turn execute the helloworld.r script
It also supports authentication as is build on top of Apache

Skype for Business online WebSDK sign in

I'm trying to use Skype for Business online WebSDK. I'm following the instructions located here - https://msdn.microsoft.com/Skype/WebSDK/docs/DevelopWebSDKappsForSfBOnline.
I'm trying to authenticate user with Office 65 online but I have problems while executing app.signInManager.signIn command.
Browser sends several requests:
Request URL:https://webdir.online.lync.com/autodiscover/autodiscoverservice.svc/root
Request Method:GET
Status Code:200 OK
Request URL:https://webdir2e.online.lync.com/Autodiscover/AutodiscoverService.svc/root/oauth/user
Request Method:OPTIONS
Status Code:200 OK
Request URL:https://webdir2e.online.lync.com/Autodiscover/AutodiscoverService.svc/root/oauth/user
Request Method:GET
Status Code:401 Unauthorized
The last request is failing with an error:
401 - Unauthorized: Access is denied due to invalid credentials.
You do not have permission to view this directory or page using the credentials that you supplied.
I'm authenticating with admin user and with an account that has Skype for Business online subscription.
Can you help me with this problem? What am I doing wrong? Are there any other prerequisites to be able to successfully log in?
I did everything from scratch following the guide here https://github.com/OfficeDev/skype-web-sdk-simple-sample-for-SfB-online. Created a Microsoft account, got a free O365 tenant, signed up for free Azure Active Directory trial account. Associated my O365 account with Azure AD as described here https://msdn.microsoft.com/en-us/office/office365/howto/setup-development-environment#associate-your-office-365-account-with-azure-ad-to-create-and-manage-apps. Then I registered the new app in Azure Active Directory to use Skype for Business.
Then I updated config.js in the skype web sdk simple sample for SfB online application.
And again no luck, the same error - 401 - Unauthorized: Access is denied due to invalid credentials.
I was trying to run the index.html page on the localhost in the htdocs/skype directory. Of course I was setting the reply url accordinly as http://localhost/skype/index.html.
Then I tried to move everything in skype directory to the root - to the htdocs folder. And also changed reply url to http://localhost/index.html. And very strangly but it helped. Now I can successfully login using Skype WebSDK.
I don't know the reason for why it is working only this way. If someone have an idea you are welcome to comment.

Resources