Skip to content

Commit

Permalink
0.7.3 Extend auth-info with type, show info when connected as ApiClient
Browse files Browse the repository at this point in the history
  • Loading branch information
DrTom committed Jul 14, 2017
1 parent 3d302b0 commit c183664
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion app/dev/releases.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
[{"version_major":0,"version_minor":7,"version_patch":2,"version_pre":null,"version_build":null,"name":null,"description":"\nChanges\n=======\n\n* Rename from \"Madek Exporter\" to \"Madek-Exporter\"\n\nFixes\n=====\n\n* Fix sign in as API-client.\n* Hide secrets by default: do not show \"internal\" connection parameters\n (password etc) in connection panel.\n"},{"version_major":0,"version_minor":6,"version_patch":0,"version_pre":null,"version_build":null,"name":null,"description":"\nChanges\n=======\n\n* Improve the UX of the sign-in page: swapping tags deletes existing sign in info.\n\nFixes\n=====\n\n* Fix sign in with login and password.\n"},{"version_major":0,"version_minor":5,"version_patch":0,"version_pre":null,"version_build":null,"name":null,"description":"\nChanges\n=======\n\n* Rename the application from \"Madek APP\" to \"Madek Exporter\".\n* Include release info.\n\nFixes\n=====\n\n* Fix export of meta-data of the Type MetaDatum::TextType.\n* Disconnect on the connection page will now delete the saved token, too.\n* Fix spelling and unnecessary involved language in many places.\n"}]
[{"version_major":0,"version_minor":7,"version_patch":3,"version_pre":null,"version_build":null,"name":null,"description":"\nChanges\n=======\n\n* Rename from \"Madek Exporter\" to \"Madek-Exporter\"\n\nFixes\n=====\n\n* Fix sign in as API-client.\n* Extend auth-info with type, show auth-info when connected as ApiClient.\n* Hide secrets by default: do not show \"internal\" connection parameters\n (password etc) in connection panel.\n"},{"version_major":0,"version_minor":6,"version_patch":0,"version_pre":null,"version_build":null,"name":null,"description":"\nChanges\n=======\n\n* Improve the UX of the sign-in page: swapping tags deletes existing sign in info.\n\nFixes\n=====\n\n* Fix sign in with login and password.\n"},{"version_major":0,"version_minor":5,"version_patch":0,"version_pre":null,"version_build":null,"name":null,"description":"\nChanges\n=======\n\n* Rename the application from \"Madek APP\" to \"Madek Exporter\".\n* Include release info.\n\nFixes\n=====\n\n* Fix export of meta-data of the Type MetaDatum::TextType.\n* Disconnect on the connection page will now delete the saved token, too.\n* Fix spelling and unnecessary involved language in many places.\n"}]
2 changes: 1 addition & 1 deletion app/prod/releases.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
[{"version_major":0,"version_minor":7,"version_patch":2,"version_pre":null,"version_build":null,"name":null,"description":"\nChanges\n=======\n\n* Rename from \"Madek Exporter\" to \"Madek-Exporter\"\n\nFixes\n=====\n\n* Fix sign in as API-client.\n* Hide secrets by default: do not show \"internal\" connection parameters\n (password etc) in connection panel.\n"},{"version_major":0,"version_minor":6,"version_patch":0,"version_pre":null,"version_build":null,"name":null,"description":"\nChanges\n=======\n\n* Improve the UX of the sign-in page: swapping tags deletes existing sign in info.\n\nFixes\n=====\n\n* Fix sign in with login and password.\n"},{"version_major":0,"version_minor":5,"version_patch":0,"version_pre":null,"version_build":null,"name":null,"description":"\nChanges\n=======\n\n* Rename the application from \"Madek APP\" to \"Madek Exporter\".\n* Include release info.\n\nFixes\n=====\n\n* Fix export of meta-data of the Type MetaDatum::TextType.\n* Disconnect on the connection page will now delete the saved token, too.\n* Fix spelling and unnecessary involved language in many places.\n"}]
[{"version_major":0,"version_minor":7,"version_patch":3,"version_pre":null,"version_build":null,"name":null,"description":"\nChanges\n=======\n\n* Rename from \"Madek Exporter\" to \"Madek-Exporter\"\n\nFixes\n=====\n\n* Fix sign in as API-client.\n* Extend auth-info with type, show auth-info when connected as ApiClient.\n* Hide secrets by default: do not show \"internal\" connection parameters\n (password etc) in connection panel.\n"},{"version_major":0,"version_minor":6,"version_patch":0,"version_pre":null,"version_build":null,"name":null,"description":"\nChanges\n=======\n\n* Improve the UX of the sign-in page: swapping tags deletes existing sign in info.\n\nFixes\n=====\n\n* Fix sign in with login and password.\n"},{"version_major":0,"version_minor":5,"version_patch":0,"version_pre":null,"version_build":null,"name":null,"description":"\nChanges\n=======\n\n* Rename the application from \"Madek APP\" to \"Madek Exporter\".\n* Include release info.\n\nFixes\n=====\n\n* Fix export of meta-data of the Type MetaDatum::TextType.\n* Disconnect on the connection page will now delete the saved token, too.\n* Fix spelling and unnecessary involved language in many places.\n"}]
4 changes: 3 additions & 1 deletion electron_front/src/all/madek/app/front/connection.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,9 @@
[:div.panel.panel-body
[:p.text-success
"Your are connected to " [:code (-> @connection* :url)]
" as " [:code [:em (-> @connection* :email_address)]] "."]]]])
" as " [:code [:em (-> @connection* :auth-info :type)]] " "
[:em (or (-> @connection* :auth-info :email_address presence)
(-> @connection* :auth-info :login presence))] "."]]]])

(defn connection-pending-component []
[:div.pending
Expand Down
3 changes: 2 additions & 1 deletion jvm_main/src/madek/app/server/connection.clj
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@
(assoc-in db [:connection] conn-params))
(merge
(select-keys connect-body [:url])
{:http-options http-options}
{:http-options http-options
:auth-info auth-info}
(select-keys auth-info [:login :email_address])))
{:status 202})))))
(catch Exception e
Expand Down
5 changes: 3 additions & 2 deletions releases.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
##### 0.7.2 #######################################################################
##### 0.7.3 #######################################################################

- version_major: 0
version_minor: 7
version_patch: 2
version_patch: 3
version_pre: NULL
version_build: NULL
name: NULL
Expand All @@ -18,6 +18,7 @@
=====
* Fix sign in as API-client.
* Extend auth-info with type, show auth-info when connected as ApiClient.
* Hide secrets by default: do not show "internal" connection parameters
(password etc) in connection panel.
Expand Down

0 comments on commit c183664

Please sign in to comment.