credentials

Consuming own API for web app - Authentication process with OAuth2

落花浮王杯 提交于 2019-12-03 01:56:01
Overview I am currently in the process of creating an API for an image sharing app that will run on the web and sometime in the future, on mobile. I understood the logical parts of API building, but I'm still struggling to meet my own requirements for the authentication part. So, my API must be accessible to the world: those with guest access (non logged in people can upload, for example), and also to registered users. So when a registered user uploads, I obviously want the user information to be sent along with the request and to attach that user information to the uploaded image via foreign

Accessing Active Directory in ASP.NET?

百般思念 提交于 2019-12-03 01:38:42
I use a console application to write some test code: /// <summary> /// Returns AD information for a specified userID. /// </summary> /// <param name="ntID"></param> /// <returns></returns> public ADUser GetUser(string ntID) { DirectorySearcher search = new DirectorySearcher(); search.Filter = String.Format("(cn={0})", ntID); search.PropertiesToLoad.Add("mail"); search.PropertiesToLoad.Add("givenName"); search.PropertiesToLoad.Add("sn"); search.PropertiesToLoad.Add("displayName"); search.PropertiesToLoad.Add("userPrincipalName"); search.PropertiesToLoad.Add("cn"); SearchResult result = search

How to specify user credentials for a click-once application?

拜拜、爱过 提交于 2019-12-02 22:30:50
For a regular .exe file i can always right click and select "run as..". How can i run a Click-Once application under different credentials in a similar way? I am talking about the application itself, not the installer. The answer really is no, you shouldn't do this. ClickOnce applications are installed under the user profile and belong only to that user. THey will not and do not work as an all-user installation. Also note that if you double-click on the [exe] file (the location of which changes every time there is an update), it will not look for updates, it will not check the files to make

AWS : The config profile (MyName) could not be found

北慕城南 提交于 2019-12-02 21:34:34
Every time I want to config something with AWS I get the following error : "The config profile (myname) could not be found" like : aws configure I'm using Python 3.4 and I want to use AWS CLI Keyring to encrypt my credentials.. Stanley Yong I think there is something missing from the AWS documentation in http://docs.aws.amazon.com/lambda/latest/dg/setup-awscli.html , it did not mention that you should edit the file ~/.aws/config to add your username profile. There are two ways to do this: edit ~/.aws/config or aws configure --profile "your username" I ran into this problem when I moved to a

Unix socket credential passing in Python

青春壹個敷衍的年華 提交于 2019-12-02 21:04:24
How is Unix socket credential passing accomplished in Python? Internet searches on this topic came up with surprisingly few results. I figured I'd post the question and answer here for others interested in this topic. The following client and server applications demonstrate how to accomplish this on Linux with the standard python interpreter. No extensions are required but, due to the use of embedded constants, the code is Linux-specific. Server: #!/usr/bin/env python import struct from socket import socket, AF_UNIX, SOCK_STREAM, SOL_SOCKET SO_PEERCRED = 17 # Pulled from /usr/include/asm

Grails spring security / Acegi. Custom User + Password expired management

馋奶兔 提交于 2019-12-02 17:43:57
问题 I'm working on a grails legacy project. A domain class called User exists. It contains password, username, roles, etc. This project uses Spring Security for role management. I would like to add expiration of credentials ( force the User to renew its password). I've modified the User class. Not it implements the UserDetails interface. However, when I start the server, I get this error> org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'messageSource':

How to validate Windows Credentials in a UWP app

孤者浪人 提交于 2019-12-02 17:43:44
问题 This scenario is for a UWP app for which Windows domain authentication needs to be used. When creating Windows Forms applications, I can use the code below to have the user input their domain credentials to verify the user and then provide permission to perform tasks within the application. The code below works perfectly in Windows Forms applications as in if the user is connected to the network, it authenticates with the server and otherwise validates with the cached credentials. How can I

MSBuild calling Powershell with credentials

…衆ロ難τιáo~ 提交于 2019-12-02 12:22:35
I'm trying to deploy a windows service using an MSBuild script that runs a Powershell command. The MSBuild script deploys the files I need and the PowerShell script will uninstall and reinstall the windows service using this command: Invoke-Command -ComputerName IPAddressHere -FilePath "C:\theScriptFileName.ps1" -credential "TheUserName" Using an IP address (which I need to because of different domains) I need to use credentials. The problem is that it prompts for a password, which won't work for TeamCity's automation. I know I can save the credentials into a variable so that the prompt won't

Pass a username/password when accessing a folder via VBScript

自闭症网瘾萝莉.ら 提交于 2019-12-02 10:39:47
问题 I have a script that is meant to retrieve some files from a users old profile on a server and copy it to there new one, but the users do not have access rights for the folders/files in question when connecting through the server. Is there a way passing a username/password with the following functions? Thanks. objFSO.FolderExists(folder_path) objFSO.CopyFolder(folder_path) objFSO.CopyFile(folder_path) 回答1: You have to map the share to a driveletter first, then persistent = false set objNetwork

accessing a remote registry with local credentials (of the remote machine) on the domain

﹥>﹥吖頭↗ 提交于 2019-12-02 10:02:12
问题 The title is a bit long but i will try to explain: i'm trying to connect from one machine (which is connected to a domain) to another machine which also connected to a domain but lost the supportedencryptiontypes of the kerberos. path: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System\kerberos\parameters basically, when this value changes i as domain admin can't manage this computer or access it, as if this machine is not on the domain anymore. but when i change