Removed oauth1 database columns & updated settings

This commit is contained in:
2020-01-05 12:21:36 -05:00
parent e6c5feb3f3
commit b5d17dc862
2 changed files with 8 additions and 14 deletions

View File

@@ -1,7 +1,7 @@
<!-- <!--
The MIT License (MIT) The MIT License (MIT)
Copyright (c) 2016 rick barrette Copyright (c) 2020 rick barrette
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
@@ -22,7 +22,7 @@ intuit.ipp.anywhere.setup({menuProxy: '/path/to/blue-dot', grantUrl: '<%= qbo_au
<tbody> <tbody>
<tr> <tr>
<th>Intuit QBO OAuth Consumer Key</th> <th>Intuit QBO OAuth2 Client ID</th>
<td> <td>
<input type="text" style="width:350px" id="settingsOAuthConsumerKey" <input type="text" style="width:350px" id="settingsOAuthConsumerKey"
value="<%= settings['settingsOAuthConsumerKey'] %>" value="<%= settings['settingsOAuthConsumerKey'] %>"
@@ -31,7 +31,7 @@ intuit.ipp.anywhere.setup({menuProxy: '/path/to/blue-dot', grantUrl: '<%= qbo_au
</tr> </tr>
<tr> <tr>
<th>Intuit QBO OAuth Consumer Secret</th> <th>Intuit QBO OAuth2 Client Secret</th>
<td> <td>
<input type="text" style="width:350px" id="settingsOAuthConsumerSecret" <input type="text" style="width:350px" id="settingsOAuthConsumerSecret"
value="<%= settings['settingsOAuthConsumerSecret'] %>" value="<%= settings['settingsOAuthConsumerSecret'] %>"
@@ -49,20 +49,15 @@ intuit.ipp.anywhere.setup({menuProxy: '/path/to/blue-dot', grantUrl: '<%= qbo_au
</tr> </tr>
<tr> <tr>
<th>Token Expires At</th> <th>OAuth2 Access Token Expires At</th>
<td><%= if Qbo.exists? then Qbo.first.token_expires_at end %> <td><%= if Qbo.exists? then Qbo.first.expire end %>
</tr>
<tr>
<th>Reconnect Token At</th>
<td><%= if Qbo.exists? then Qbo.first.reconnect_token_at end %>
</tr> </tr>
</tbody> </tbody>
</table> </table>
<br/> <br/>
Note: You need to authenticate after saving your key and secret above Note: You need to authenticate with Quickbooks after saving your key and secret above
<br/> <br/>
<br/> <br/>

View File

@@ -9,11 +9,10 @@
#THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. #THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
class RemoveQbosKeys < ActiveRecord::Migration class RemoveQbosKeys < ActiveRecord::Migration
def change def change
remove_column :qbos, :qb_token remove_column :qbos, :qb_secret
remove_column :qbos, :qb_secrect
remove_column :qbos, :token_expires_at remove_column :qbos, :token_expires_at
remove_column :qbos, :reconnect_token_at remove_column :qbos, :reconnect_token_at
remove_column :qbos, :qb_token
end end
end end