Commit Graph

40 Commits

Author SHA1 Message Date
John Mitchell
976766e4a3 excise token-based auth from ui 2018-02-22 15:18:12 -05:00
Ben Thomasson
7d767f8f63 Automatically change .error to .catch.
Use this script to change .error to .catch using this linux script:

    #!/bin/bash -ex
    #Run in awx/awx/ui/client/src
    FILES=`grep -l -R "\.error(\s*function\s*(data,\s*status)\s*{" . | xargs`
    sed -i "s/\.error(\s*function\s*(data,\s*status)\s*{/.catch(({data, status}) => {/g" $FILES

    FILES=`grep -l -R "\.error(this\.error\.bind(this))" . | xargs`
    sed -i "s/\.error(this\.error\.bind(this))/\.catch(this\.catch\.bind(this))/g" $FILES

    FILES=`grep -l -R "\.error(\s*function\s*(error)\s*{" . | xargs`
    sed -i "s/\.error(\s*function\s*(error)\s*{/.catch(({error}) => {/g" $FILES

    FILES=`grep -l -R "\.error(\s*function\s*(obj,\s*status)\s*{" . | xargs`
    sed -i "s/\.error(\s*function\s*(obj,\s*status)\s*{/.catch(({obj, status}) => {/g" $FILES

    FILES=`grep -l -R "\.error(\s*function\s*(res,\s*status)\s*{" . | xargs`
    sed -i "s/\.error(\s*function\s*(res,\s*status)\s*{/.catch(({res, status}) => {/g" $FILES

    FILES=`grep -l -R "\.error(\s*function\s*(msg,\s*code)\s*{" . | xargs`
    sed -i "s/\.error(\s*function\s*(msg,\s*code)\s*{/.catch(({msg, code}) => {/g" $FILES

    FILES=`grep -l -R "\.error(\s*function\s*()\s*{" . | xargs`
    sed -i "s/\.error(\s*function\s*()\s*{/.catch(() => {/g" $FILES
2017-10-23 12:29:22 -04:00
Ben Thomasson
834e6c692c Automatically change instances of .success to .then with this linux script:
#Run in awx/awx/ui/client/src

    #!/bin/bash -ex
    FILES=`grep -l -R "\.success(\s*function\s*(data)\s*{" . | xargs`
    sed -i "s/\.success(\s*function\s*(data)\s*{/\.then(({data}) => {/g" $FILES

    FILES=`grep -l -R "\.success(\s*function\s*()\s*{" . | xargs`
    sed -i "s/\.success(\s*function\s*()\s*{/\.then(() => {/g" $FILES

    FILES=`grep -l -R "\.success(this\.success\.bind(this))" . | xargs`
    sed -i "s/\.success(this\.success\.bind(this))/\.then(this\.then\.bind(this))/g" $FILES
2017-10-23 12:29:21 -04:00
Jared Tabor
1f98dee4d0 changing awx-logos out for angry spud 2017-07-20 15:55:12 -07:00
Jared Tabor
f7f186e676 removing more references to "Tower" in the code base 2017-07-17 16:48:45 -07:00
Jared Tabor
d2a914a040 removing some old portal mode code that's unused
while auditing Tower strings
2017-07-13 18:32:13 -07:00
Michael Abashian
555c1dcb88 Store the preAuthUrl on rootScope instead of in the cookie 2017-06-09 09:20:49 -04:00
Michael Abashian
7768106d3f Store the url that the user comes in on before auth in preAuthUrl 2017-06-08 19:01:44 -04:00
Michael Abashian
fc312398cd Redirect the user to the link they clicked on after authentication 2017-06-08 18:40:12 -04:00
Michael Abashian
b875fd65e1 Replaced all hard-coded api/v1 references with dynamic references or with v2 2017-05-24 17:05:46 -04:00
Michael Abashian
1869ba6742 Removed unnecessary dependency injections 2017-03-16 14:53:17 -04:00
jaredevantabor
a2a0a3194f updating $cookieStore to $cookie
b/c it was deprecated in Angular 1.4
2017-03-02 13:10:19 -08:00
jaredevantabor
53208c22ec adding a DELETE to /authtoken when user logs out 2017-02-02 16:58:32 -08:00
Ken Hoes
dc4217944d Added custom info, fixed logout bug 2016-12-01 11:56:15 -05:00
Ken Hoes
8028b7ef75 Added image upload for custom logo 2016-11-30 13:15:30 -05:00
Jared Tabor
947571fe26 Fixing live events for inventory-manage page 2016-10-04 14:23:39 -07:00
Jared Tabor
813eeb9dd9 fixing socketservice init on login 2016-10-04 14:16:59 -07:00
Akita Noek
4c67c50373 Allow system auditors to see notification templates and management jobs in the UI 2016-07-11 14:42:01 -04:00
Jared Tabor
c6879e5163 Adding an extra session check for when a user closes tower
before the session times out and returns to Tower. Also changed the login route controller to a resolve to ensure that the login modal appears.
2016-06-16 10:50:53 -07:00
Jared Tabor
70318f23cb Loading the viewport after /config response is returned from the API 2016-06-09 10:24:58 -07:00
Jared Tabor
a34a82c745 Updating documentation on login process for new config workflow 2016-06-03 10:26:10 -07:00
Jared Tabor
c516a17ef9 Removing old code and cleaning up for PR 2016-06-02 17:42:41 -07:00
Jared Tabor
4466fc80a2 Fixing features timing with new config work 2016-06-02 17:42:39 -07:00
Jared Tabor
5f52384a3d fixing login and submit for new license 2016-06-02 17:42:39 -07:00
Jared Tabor
ac2e334186 Fixing related tab empty list styling 2016-05-10 16:04:11 -04:00
Ken Hoes
792150f033 Updated logos and branding 2016-04-20 14:57:50 -04:00
John Mitchell
16340975fd fixed login modal straggling issues 2015-11-25 14:51:55 -05:00
Matthew Jones
3b07773bcd Merge branch 'release_2.4.0' into devel
* release_2.4.0: (70 commits)
  Disallow changing a users password for social auth
  bump django-radius to include new license
  Change Jenkins server references from IP to DNS name
  Social auth and SSO updates:
  allow multi-org expired licenses to delete orgs
  Add social log messages to tower's log on error
  Update default scopes requested for github social auth.
  Switch to matburt's fork for python social auth
  Emit a warning for unmapped SAML paramters
  Fix up some SAML issues
  Remove `environment` play stmt
  Use correct aw_repo_url when building packer
  Add missing libxmlsec1 openssl dependency for ubuntu
  adds socket tests
  added git pre commit hook to run flake8
  fixes remove_instance error
  null pointer exception
  Resolve issue on precise keeping old debs around
  Attach handlers to django_auth_ldap
  Attach handlers to django_auth_ldap
  ...
2015-11-16 15:12:37 -05:00
John Mitchell
c6ca1b1c2b update loginModal based on 3.0 mockups 2015-11-11 15:29:36 -05:00
John Mitchell
e05988ff5d resolve config with a promise on the login route 2015-11-03 21:58:01 -05:00
Jared Tabor
6c8597cf95 Wrapping timer init in promise
to ensure that timer is started before initializing websockets. This was leading to instances where the websocket thought that the session
hadn't been started yet. Also fixed an issue where the session wasn't tearing down the $interval when AUTH_TOKEN_PER_USER had been exceeded.
2015-10-27 13:51:54 -07:00
Jared Tabor
b83dfda92c fixing a null pointer exception if services are down and user attempts to login 2015-10-25 17:29:29 -07:00
Jared Tabor
fa2a11d8e7 Properly handle idle/expired session across tabs
this utilizes local storage instead of cookies/rootscope
2015-10-16 16:48:09 -07:00
Jared Tabor
b6e51a0cd4 updated $http call to angular 1.4 implementation 2015-10-08 11:46:15 -04:00
Jared Tabor
4ea2e10f1c rejecting promise on requestError REST interceptor 2015-10-08 11:45:39 -04:00
Jared Tabor
29daee8334 Pendo.io service for Tower UI
This commit integrates the pendo support for the Tower UI, which involves creating an 'options' object and registering it with the pendo service installed in the index.html file. The options object is identified each time the user logs into Tower or when the browser session is refreshed.
2015-09-29 15:18:13 -04:00
John Mitchell
6342b67245 fixed double login modal on no creds entered 2015-09-29 10:26:04 -04:00
John Mitchell
e5c6dda79f fixed login modal disappearing by improving ux 2015-09-28 16:05:41 -04:00
John Mitchell
f1f9f5f982 fixed custom logo path stuff to work with server 2015-09-25 16:58:53 -04:00
John Mitchell
1de977b4c5 refactor login folder to be a little cleaner 2015-09-24 16:16:55 -04:00