Sven Fuchs
2e8b74160c
move log subscrition to a log controller
2013-03-06 19:59:59 +01:00
Piotr Sarnacki
211b2723f9
Fix authentication
2013-02-26 07:05:40 +01:00
Piotr Sarnacki
a3622e14c9
Allow to sign in and sign out
2013-02-21 23:22:53 +01:00
Piotr Sarnacki
4b01db6d4b
Don't parse user if data can't be fetched from storage ( closes #124 )
2013-01-30 02:24:12 +01:00
Konstantin Haase
5b48aa20e7
check scopes
2013-01-07 20:59:54 +01:00
Konstantin Haase
cb392b549d
reduce logging
2012-12-17 20:33:28 +01:00
Konstantin Haase
f756df1468
typo
2012-12-17 20:17:36 +01:00
Konstantin Haase
12c84d8359
more logging in auth
2012-12-17 20:15:19 +01:00
Konstantin Haase
7ce690aecf
add logging
2012-12-17 19:58:34 +01:00
Konstantin Haase
f326960f9a
check for token
2012-12-17 15:19:22 +01:00
Konstantin Haase
34aaa070c9
don't check for token for now
2012-12-16 18:14:04 +01:00
Konstantin Haase
946dd55ce3
fix validation
2012-12-16 18:01:44 +01:00
Konstantin Haase
6c87a9c267
more verbose validation
2012-12-16 17:52:59 +01:00
Konstantin Haase
0b7d7a6eec
fix typo
2012-12-16 17:44:27 +01:00
Konstantin Haase
de0790c5d9
we might not have user yet
2012-12-16 17:26:52 +01:00
Konstantin Haase
a37dc4dca3
fix for nested user data
2012-12-16 17:20:32 +01:00
Konstantin Haase
43726e4025
fix reference
2012-12-16 17:04:41 +01:00
Konstantin Haase
5d7604567c
js and bindings, how does it work?
2012-12-16 17:00:31 +01:00
Konstantin Haase
368ef859ea
refactor auth
2012-12-16 16:57:12 +01:00
Sven Fuchs
ab0cb7d432
set auto_signin flag to false before actually trying to sign in
2012-12-16 14:59:43 +01:00
Sven Fuchs
b6df2bfbe1
add Auth.validateUser
2012-12-16 14:25:52 +01:00
Randy Morgan
e4fb6c1fee
Completed dynamic I18n intetegration.
...
travis-web starts in English. When the user logs in, it switches to
their locale, when they logout, it goes back to english.
2012-12-11 10:48:19 +09:00
Piotr Sarnacki
8e97b68313
Make the app work with disabled cookies
...
Browsers disable local storage and session storage when cookies are
disabled - any call to one of those will cause an error. This commit
provides fallback storage, which will store items in memory.
2012-12-10 17:37:09 +01:00
Piotr Sarnacki
a662d03ee7
Revert "Don't automatically sign in if there is no token available"
...
This commit breaks login in Safari, without it people will need log out
and log in again if they experienced 401 requests on the profile page,
but we can't break Safari.
It seems that the root cause of the error is the fact that auto sign in
fails in Safari.
This reverts commit d84b3581eb
.
2012-12-10 13:53:35 +01:00
Piotr Sarnacki
d84b3581eb
Don't automatically sign in if there is no token available
2012-12-10 11:22:18 +01:00
Piotr Sarnacki
567ba4cc6d
Fix storing token when doing auto sign in
2012-12-10 10:42:21 +01:00
Konstantin Haase
c3e1bb7d67
only sign in once
2012-12-06 17:11:32 +01:00
Konstantin Haase
b4a1535533
check user
2012-12-06 16:58:28 +01:00
Konstantin Haase
21af8176a1
listen for redirect events
2012-12-05 14:18:32 +01:00
Piotr Sarnacki
d12a444aed
Fix parse error on "done" response from the API
...
We sometimes get "done" as a response body from API when authenticating.
We should properly fix it in the API, but for now I will add this quick
fix to not completely break on login when it happens until we have
proper fix.
2012-11-28 20:19:11 +01:00
Konstantin Haase
7816ab558b
increase timeout, api is now taking care of this
2012-11-18 21:11:06 +01:00
Piotr Sarnacki
7af5d4c1b6
Debug info on auth
2012-11-17 12:31:22 +01:00
Sven Fuchs
d63af402c1
issue events on user:signed_in and user:synced
2012-11-16 17:43:22 +01:00
Sven Fuchs
216724af64
changes for pro
2012-11-15 16:31:54 +01:00
Piotr Sarnacki
630de8efc3
We should display travis token, not github one in profile
2012-11-10 15:47:34 +01:00
Konstantin Haase
a1fb0ff2be
bump up auth timeout
2012-10-23 21:25:22 +02:00
Sven Fuchs
f790a809ff
remove debug output
2012-10-19 22:24:57 +02:00
Sven Fuchs
853606bcc6
moar routing/auth refactorings
2012-10-19 22:20:45 +02:00
Sven Fuchs
c4b91108a0
refactor routes/auth interaction so that it always calls afterSignIn()
2012-10-19 21:24:18 +02:00
Sven Fuchs
a806dd7ff8
refactor broadcasts
2012-10-19 04:27:07 +02:00
Piotr Sarnacki
e278f007a7
Properly set token on user record ( closes #25 )
2012-10-16 18:35:18 +02:00
Sven Fuchs
d84b5dfd0a
add autoSignIn to fix that after signOut it would always re-signin on pages that require auth
2012-10-13 15:52:27 +02:00
Sven Fuchs
4689545547
camelize to afterSignIn and add afterSignOut
2012-10-13 15:02:23 +02:00
Sven Fuchs
2485a7bcb9
fix router after_signin behaviour
2012-10-13 14:51:12 +02:00
Sven Fuchs
551b976bbc
re-enable auto-auth
2012-10-11 15:34:01 +02:00
Sven Fuchs
05a57a593c
deactivate auto-auth for now because redis has run full :/
2012-10-11 05:16:07 +02:00
Piotr Sarnacki
64fc6ce717
Don't trigger state change on signin if already in authenticated state
2012-10-09 13:08:57 +02:00
Sven Fuchs
25dffc0a7a
load user permissions
2012-10-06 23:40:05 +02:00
Sven Fuchs
f6ac7b9c30
showUnauthenticated after signout
2012-10-06 15:27:49 +02:00
Sven Fuchs
7b47863014
extract paths in Assetfile; rename javascripts to scripts, stylesheets to styles
2012-10-03 17:13:02 +02:00