credentials

YouTube API v3 Java authorization

坚强是说给别人听的谎言 提交于 2019-12-01 11:27:48
I'm using the YouTube Data API (Java) to upload videos to my YouTube channel. I've tested it on my Windows PC and succeeded. But the authorization in the sample makes a Credential instance by opening a browser window to signin to Google. This is fine on my Windows PC, but I'm trying to get this code to work on a remote linux machine that I only have SSH access to. I've searched stackoverflow for similar questions, and found the exact same question. But as that question doesn't have the specific tags that Google engineers require, I'm posting it as a new question. Youtube API V3 Java Any

Send credentials to WebBrowser

感情迁移 提交于 2019-12-01 10:55:23
I have a webbrowser control that navigates to sharepoint port. How can i send credentials to webbrowser control, so i can navigate to the site with custom credentials? It depends on the authentication method used by the server. For form authentication you just need to simulate a form post. But most likely the site is using integrated Windows authentication and you need to implement IAuthenticate (Ex) Or impersonate via LogonUser. 来源: https://stackoverflow.com/questions/2445963/send-credentials-to-webbrowser

hg push error and username not specified in .hg/hgrc. Keyring will not be used

▼魔方 西西 提交于 2019-12-01 08:33:17
问题 I did the following: hg clone ...somelink.to.repo.in.hg... Giga cd Giga ls (...it shows me giga.txt file exist in Giga directory) vi giga.txt (...made some changes..) hg commit -m "byte" hg out (got the following error) ** unknown exception encountered, details follow ** report bug details to http://mercurial.selenic.com/bts/ ** or mercurial@selenic.com ** Mercurial Distributed SCM (version 1.5) ** Extensions loaded: acl, bugzilla, children, churn, color, convert, extdiff, fetch, gpg,

Google API Manager OAuth consent screen configuration Error

爷,独闯天下 提交于 2019-12-01 05:36:54
I've created an new project in the Google Developers Console and wanted to add OAuth 2.0 client ID Credentials for a Web Application, wich requires me to set a product name on the consent screen. Once I hit save after entering a product name on the OAuth constent screen configuration tab an error occurs and my changes are not applied: The user request is invalid. Please check your URL and try again. Server Response: { "error": { "code": 400, "message": "Request contains an invalid argument.", "status": "INVALID_ARGUMENT" } } I guess the problem is name or mail related since all parameters

Pass Credentials to WMI Call in VBScript

谁说胖子不能爱 提交于 2019-12-01 04:42:42
I have VBScript inside a HTA getting the ping status from a local WMI call.. I also have a function to get the last reboot time of the remote pc.. Function GetReboot(strComputer) Set objWMIService = GetObject _ ("winmgmts:\\" & strComputer & "\root\cimv2") Set colOperatingSystems = objWMIService.ExecQuery _ ("Select * from Win32_OperatingSystem") For Each objOS in colOperatingSystems dtmBootup = objOS.LastBootUpTime dtmLastBootupTime = WMIDateStringToDate(dtmBootup) dtmSystemUptime = DateDiff("h", dtmLastBootUpTime, Now) Wscript.Echo dtmSystemUptime Next GetReboot = dtmLastbootupTime End

Angular 2 Http request does not send credentials

浪子不回头ぞ 提交于 2019-12-01 03:26:10
问题 I am working with Angular 2 and I am trying to send HTTP request with credentials: This Angular 1 code works well, it includes the credentials: $http.get("http://some.com/user",{ withCredentials: true}) According to the API preview I have implemented this Angular 2 code but it does not include credentials: http.get("http://some.com/user", { headers: myHeaders, credentials: RequestCredentialsOpts.Include }).toRx() .map(res => res.json()) .subscribe( // onNext callback data => this

C# Using CredWrite to Access C$

烈酒焚心 提交于 2019-11-30 22:56:07
I'm trying to access the C$ of a server with a domain account that does not have right's to that server. I need to save the the credentials in the form of a local log in for that server for the program to work correctly. How do I save those credentials using CredWrite The Credential Manager class I've found: (EDIT: The following is functioning code.) using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Runtime.InteropServices; using Microsoft.Win32.SafeHandles; namespace Test_Manager { public class Win32CredMan { [DllImport("Advapi32.dll",

Spring Security with basic auth redirecting to /error for invalid credentials

一个人想着一个人 提交于 2019-11-30 20:41:51
I have a spring boot application running with spring security using basic auth. When proper basic auth credentials are supplied, everything is good, but for incorrect auth credentials, spring comes up with a HttpRequestMethodNotSupportedException: Request method 'POST' not supported exception. According to the logs, the authentication failure has been identified by spring, but that's not what comes out. 2015-08-12 09:33:10.922 INFO 16988 --- [nio-8080-exec-4] o.s.b.a.audit.listener.AuditListener : AuditEvent [timestamp=Wed Aug 12 09:33:10 AEST 2015, principal=anonymousUser, type=AUTHORIZATION

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment

人走茶凉 提交于 2019-11-30 19:00:31
I'm running into a strange behavior with a powershell Start-Process call. Here is the call: $process = start-process ` "C:\somepath\MyBinary.exe" ` -PassThru ` -Credential $defaultCredential ` -Wait ` -WorkingDirectory "C:\somepath" ` -LoadUserProfile if ($process.ExitCode -ne 0) { #do something } This call always return with the exit code - 1073741502 . After a quick search, this exit code seems related to a generic error when the program could not load its required dll (aka. STATUS_DLL_INIT_FAILED ). When I run it without -Credential $credential the program runs correctly. In order to

Playframework 2 - Storing your credentials

安稳与你 提交于 2019-11-30 17:32:24
问题 Where do you store you credentials like secret key , mail passwords, db passwords? I made a post on https://security.stackexchange.com/questions/19785/security-concerns-about-my-webapp/19786#19786 And it seems the best way to store the credentials is on an external server. But play2 uses the application.conf to do this. So how and where do you store your credentials in play2? Update 1: Okay I am using heroku. I set my enviroment variable like this: heroku config:add test=ITWORKS in