forked from bimovidia/planning-poker
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* finished adding API key to form * worked oauth into the app * fix tests * pushing secrets for travis * updated tarfile
- Loading branch information
1 parent
b1f1600
commit 64fdea3
Showing
19 changed files
with
236 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,6 +24,7 @@ | |
.DS_Store | ||
|
||
credentials.json | ||
credentials_oauth.json | ||
|
||
token.yaml | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -380,4 +380,8 @@ body { | |
padding: 20px 30px; | ||
} | ||
} | ||
} | ||
|
||
.font-size-lg { | ||
font-size:18px; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<div id="signin-box"> | ||
<h1> | ||
Pivotal Tracker | ||
</h1> | ||
<div class='col-md-15 text-left font-size-lg'> | ||
<p1>You only need to set your API key once (or if you have had to change your password).</p1><br> | ||
<p1>This is only required for Google OAuth users. Regular users with passwords do not need to fill this form out. Proceed to the Login screen as normal to sign in.</p1><br><br> | ||
<p1>For information on how to access your API key, <%= link_to "click this link", "https://www.pivotaltracker.com/help/articles/api_token/" %> .</p1> | ||
</div> | ||
<br> | ||
|
||
<%= form_tag set_api_key_path, as: :session do %> | ||
|
||
<div class="form-group"> | ||
<%= text_field_tag :username, nil, class: 'form-control', placeholder: 'Email / Username' %> | ||
</div> | ||
|
||
<div class="form-group"> | ||
<%= password_field_tag :api_key, nil, class: 'form-control', placeholder: 'API Key' %> | ||
</div> | ||
|
||
<%= submit_tag t('setapikey').upcase, class: 'btn btn-success' %> | ||
<% end %> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
require 'json' | ||
|
||
OmniAuth.config.logger = Rails.logger | ||
google_data = JSON.parse(File.read('credentials_oauth.json'))["web"] | ||
|
||
|
||
Rails.application.config.middleware.use OmniAuth::Builder do | ||
provider :google_oauth2, google_data["client_id"], google_data["client_secret"]#, {client_options: {ssl: {ca_file: Rails.root.join("cacert.pem").to_s}}} | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.