credentials_manager 0.0.1 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/LICENSE +1 -1
- data/README.md +20 -2
- data/lib/credentials_manager/password_manager.rb +5 -6
- data/lib/credentials_manager/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3b4cdc4b439e40abeb6fdb4cb1d0cc6c418095d4
|
4
|
+
data.tar.gz: 01b64648325c1381f33189299638d4d6ae8a369a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8d14db23b09b6ac56001720ac4399df568c1cac6438517d4f23ee45bc9cd69a01b757c6e874282facb71447af1ff7dcc2f61c5719c551aa7490d448c8160e011
|
7
|
+
data.tar.gz: e2b045e7c3ebd8c2849e662d93c87f3f12e9734064f9c9ad7ed20967d85a07d763516142da5046e300fc14720182888694c94190e2c97c661da2ccba4b0ac924
|
data/LICENSE
CHANGED
data/README.md
CHANGED
@@ -1,6 +1,23 @@
|
|
1
|
-
|
1
|
+
CredentialsManager
|
2
|
+
===================
|
2
3
|
|
3
|
-
|
4
|
+
```CredentialsManager``` is used by most of the tools part of the [fastlane.tools](https://fastlane.tools) toolchain.
|
5
|
+
|
6
|
+
Every code, related to your username and password can be found here: [password_manager.rb](httpshttps://github.com/KrauseFx/CredentialsManager/blob/master/lib/credentials_manager/password_manager.rb)
|
7
|
+
|
8
|
+
## Storing in the Keychain
|
9
|
+
By default, when entering your Apple credentials, they will be stored in the Keychain from Mac OS X. You can easily delete them, by opening the "Keychain App" switching to *All Items* and searching for "*deliver*".
|
10
|
+
|
11
|
+
## Passing using environment variables
|
12
|
+
```
|
13
|
+
DELIVER_USER
|
14
|
+
DELIVER_PASSWORD
|
15
|
+
```
|
16
|
+
|
17
|
+
## Implement your custom solution
|
18
|
+
All ```fastlane``` tools are based on Ruby, you can take a look at the source to easily implement your own authentication solution.
|
19
|
+
|
20
|
+
Your password will only be stored locally on your computer.
|
4
21
|
|
5
22
|
# License
|
6
23
|
This project is licensed under the terms of the MIT license. See the LICENSE file.
|
@@ -13,3 +30,4 @@ This project is licensed under the terms of the MIT license. See the LICENSE fil
|
|
13
30
|
4. Commit your changes (`git commit -am 'Add some feature'`)
|
14
31
|
5. Push to the branch (`git push origin my-new-feature`)
|
15
32
|
6. Create a new Pull Request
|
33
|
+
|
@@ -1,5 +1,6 @@
|
|
1
1
|
require 'security'
|
2
2
|
require 'highline/import' # to hide the entered password
|
3
|
+
require 'credentials_manager/appfile_config'
|
3
4
|
|
4
5
|
module CredentialsManager
|
5
6
|
# Handles reading out the password from the keychain or asking for login data
|
@@ -40,8 +41,6 @@ module CredentialsManager
|
|
40
41
|
# This method is called, when the iTunes backend returns that the login data is wrong
|
41
42
|
# This will ask the user, if he wants to re-enter the password
|
42
43
|
def password_seems_wrong
|
43
|
-
return false if Helper.is_test?
|
44
|
-
|
45
44
|
puts "It seems like the username or password for the account '#{self.username}' is wrong.".red
|
46
45
|
reenter = agree("Do you want to re-enter your username and password? (y/n)", true)
|
47
46
|
if reenter
|
@@ -61,7 +60,7 @@ module CredentialsManager
|
|
61
60
|
def ask_for_login
|
62
61
|
puts "---------------------------------------------------------------------------".green
|
63
62
|
puts "The login information you enter now will be stored in your keychain ".green
|
64
|
-
puts "More information about that on GitHub: https://github.com/
|
63
|
+
puts "More information about that on GitHub: https://github.com/KrauseFx/fastlane".green
|
65
64
|
puts "---------------------------------------------------------------------------".green
|
66
65
|
|
67
66
|
username_was_there = self.username
|
@@ -86,14 +85,14 @@ module CredentialsManager
|
|
86
85
|
if Security::InternetPassword.add(hostname, self.username, self.password)
|
87
86
|
return true
|
88
87
|
else
|
89
|
-
|
88
|
+
puts "Could not store password in keychain".red
|
90
89
|
return false
|
91
90
|
end
|
92
91
|
end
|
93
92
|
end
|
94
93
|
|
95
94
|
def remove_from_keychain
|
96
|
-
|
95
|
+
puts "Removing keychain item: #{hostname}".yellow
|
97
96
|
Security::InternetPassword.delete(:server => hostname)
|
98
97
|
end
|
99
98
|
|
@@ -108,4 +107,4 @@ module CredentialsManager
|
|
108
107
|
[HOST, self.username].join('.')
|
109
108
|
end
|
110
109
|
end
|
111
|
-
end
|
110
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: credentials_manager
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Felix Krause
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-01-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: highline
|
@@ -94,9 +94,9 @@ dependencies:
|
|
94
94
|
- - ~>
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: 3.1.0
|
97
|
-
description: Password manager used in
|
97
|
+
description: Password manager used in fastlane.tools
|
98
98
|
email:
|
99
|
-
- krausefx
|
99
|
+
- fastlane@krausefx.com
|
100
100
|
executables: []
|
101
101
|
extensions: []
|
102
102
|
extra_rdoc_files: []
|
@@ -130,5 +130,5 @@ rubyforge_project:
|
|
130
130
|
rubygems_version: 2.2.2
|
131
131
|
signing_key:
|
132
132
|
specification_version: 4
|
133
|
-
summary: Password manager used in
|
133
|
+
summary: Password manager used in fastlane.tools
|
134
134
|
test_files: []
|