credentials

Locally reading S3 files through Spark (or better: pyspark)

Deadly 提交于 2019-12-28 12:14:28
问题 I want to read an S3 file from my (local) machine, through Spark (pyspark, really). Now, I keep getting authentication errors like java.lang.IllegalArgumentException: AWS Access Key ID and Secret Access Key must be specified as the username or password (respectively) of a s3n URL, or by setting the fs.s3n.awsAccessKeyId or fs.s3n.awsSecretAccessKey properties (respectively). I looked everywhere here and on the web, tried many things, but apparently S3 has been changing over the last year or

Sending email via Powershell using secure password

不羁岁月 提交于 2019-12-25 15:18:45
问题 I'm trying to test sending an email but I don't want to just have a plaintext password in my script. Here's what I have, and this works: $SmtpServer = 'smtp.office365.com' $SmtpUser = 'fubsygamr@office365.com' $smtpPassword = 'Hunter2' $MailtTo = 'fubsygamr@office365.com' $MailFrom = 'fubsygamr@office365.com' $MailSubject = "Test using $SmtpServer" $Credentials = New-Object System.Management.Automation.PSCredential -ArgumentList $SmtpUser, $($smtpPassword | ConvertTo-SecureString -AsPlainText

Sending email via Powershell using secure password

梦想的初衷 提交于 2019-12-25 15:17:02
问题 I'm trying to test sending an email but I don't want to just have a plaintext password in my script. Here's what I have, and this works: $SmtpServer = 'smtp.office365.com' $SmtpUser = 'fubsygamr@office365.com' $smtpPassword = 'Hunter2' $MailtTo = 'fubsygamr@office365.com' $MailFrom = 'fubsygamr@office365.com' $MailSubject = "Test using $SmtpServer" $Credentials = New-Object System.Management.Automation.PSCredential -ArgumentList $SmtpUser, $($smtpPassword | ConvertTo-SecureString -AsPlainText

Unable to set google api credentials

放肆的年华 提交于 2019-12-25 08:56:47
问题 I am trying to use the google translation api in my application by following these instructions, but having some trouble setting up the authorisation. I created the service account, got the json file, and set it in with set GOOGLE_APPLICATION_CREDENTIALS="C:\Users\Bassie\Documents\.credentials\google-translation-api\My Project-d885ebbbe907.json" After running that command I don't see any output, and I don't see a system environment variable called GOOGLE_APPLICATION_CREDENTIALS (is that where

Android Ignoring HTTPS conexion

隐身守侯 提交于 2019-12-25 05:59:54
问题 The other day i asked a question because i had read a lot of information about how to add self/signed certificatates to an app, but i didnt know how to do it with one Signed by Verisign for example. They told me that i don't need to add any certificate to the app, only use https and that's all. The problem is that now doing a https request, the Android phone (2.3 version) ignore the https conexion and use only http one. I get this message on the LogCat: I/APACHE HTTP (thCr=10) -

getting “401 Unauthorized” while trying to authenticated with service account

随声附和 提交于 2019-12-25 03:34:20
问题 So here is the problem: Ive recently made this post. Solution I've mentionned worked for one token and one API but when I tried to handle two APIs with two token (gmail and Sheets API) it failed. So what I'm trying to do now is make the two work so I told myself "Hey let's create a service account". Even if I don't really understand the differences between both methods. Service account seems to prevent from having a consent screen (Am I right?). I've crawled the web for answers but all of

How to make the Browser include the cookies of the domain of the host origin when making a cross-origin HTTP request

。_饼干妹妹 提交于 2019-12-25 01:55:26
问题 I made a cross-origin HTTP request from the website 'demo.home.com' to 'demo.company.com' using the Fetch api with the credentials set to 'include'. There are two cookies. One is 'cookie_home=123; Domain=demo.home.com', the other is 'cookie_company=456; Domain=demo.company.com'. As a result, the cookie 'cookie_company' was included by the request. Is there any way to let the cookie 'cookie_home' be included by the request? // the request is made in the website 'http://demo.home.com' // the

Monitor folder on remote PC for changed files

感情迁移 提交于 2019-12-25 01:45:52
问题 I have a measuring device on a PC in our network. The PC is not joined to the domain, however has a shared folder for which I have a username and password. I am attempting to build a Powershell script to monitor this folder from a remote server , for new CSV files, the script will then copy the file to a specified folder location. I am struggling to pass through the parameters to the FileSystemWatcher cmdlet. Any ideas? $folder = '\\remoteip\folder\subfolder'# <--'<full path to the folder to

XHR2 withCredentials - which cookies are sent?

╄→尐↘猪︶ㄣ 提交于 2019-12-24 21:25:06
问题 Hopefully this is simple to answer. With a credentialed request in XHR2, which cookies are sent? I've been following the MDN article on credentialed requests, and it shows that the cookie pageAccess=2 is sent with the request. However it doesn't explain where that cookie comes from, and why that cookie specifically is being sent. Is it simply that all cookies set by the page are sent in any credentialed request? 回答1: From the HTML5 Rocks page on CORS: The .withCredentials property will

App engine P12 AccessControlException

心不动则不痛 提交于 2019-12-24 12:33:43
问题 I am trying to read a P12 key on App Engine ( Google ) They key is located in WEB-INF directory. Currently I have this code : Credential credential = new GoogleCredential.Builder() .setTransport(httpTransport) .setJsonFactory(jsonFactory) .setServiceAccountId(ACCOUNT_ID_PROPERTY) .setServiceAccountPrivateKeyFromP12File( new File("/WEB-INF/key.p12")) .setServiceAccountScopes(scopes).build(); But it's returning me this error : java.security.AccessControlException: access denied ("java.io