Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update ember-simple-auth version #1289

Merged
merged 10 commits into from
Jan 7, 2016
Merged

Conversation

jrjohnson
Copy link
Member

With the release of ember-simple-auth 1.0 several changes are required. This is a critical update on our path to Ember 2.0 as well as allowing for a simplification and paves the way for new features of the currentUser service.

Outstanding issues after testing:

  • Shibboleth login not setting the token correctly so subsequent requests (like user events) don't get an auth header.
  • requests to /errors are not authenticated (possibly the same as the shibboleth issue)

This is a big change in a couple of ways:
There are deprecations aplenty and a big API change that requires the
session to be an injected service.

Changed all the authenticated routes to use the new correct mixing

Changed the application route to override sessionInvalidated instead of
the sessionInvalidationSucceeded action.

Also had to write a custom ajax service to ensure that authentication
headers get sent with requests.

Had to modify the application adapter to send auth data with ember-data
requests.
New ember-simple-auth requires a different setup, this also future
proofs us for user fixture changes.
Use UTC so tests don’t fail in the afternoon
If we don’t do this the console fills up with messages about it.
If we don’t do this then some tests fail
Workaround to avoid correctly setting up the dependency injection for
the test.
This allows us to use the ajax service so errors written to the API
will be authenticated.  Also removes one of our deprecation notices.
This wasn't recoputing correctly so shibboleth initial requests were not firing
@jrjohnson
Copy link
Member Author

This PR is currently deployed to https://ilios-stage.ucsf.edu/ so the shibboleth part can be tested there.

@stopfstedt stopfstedt changed the title Update ember-simple-auth versin Update ember-simple-auth version Jan 7, 2016
@stopfstedt
Copy link
Member

login works.

logout works, although using the browser's back button from the SSO logout page will log you back.

i also noticed that the application throws errors after logging out, before redirecting to the SSO logout page.

selection_071

@jrjohnson
Copy link
Member Author

Back button logout seems to be an existing issue in production. Must be hanging on to a cookie. I will investigate.

@jrjohnson
Copy link
Member Author

I created a new issues #1304 for the back button problem. Will investigate separately.

stopfstedt added a commit that referenced this pull request Jan 7, 2016
Update ember-simple-auth version
@stopfstedt stopfstedt merged commit 8eb84f5 into ilios:master Jan 7, 2016
@jrjohnson jrjohnson deleted the update-auth branch January 8, 2016 02:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants