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

Introducing Ember-Simple-Auth For Token Authentication #9

Merged
merged 3 commits into from
Nov 17, 2018

Conversation

nadnoslen
Copy link
Member

No description provided.

// I'm doing this to tap-dance around how my parent classes use this
if ('boolean' === typeOf(isInvalidateServerSide) && isInvalidateServerSide) {
this.invalidateServerSide(get(sessionData, this.tokenPropertyName));
}
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This needs to be fixed. This is javascript hack-101. #2

*/
handleAccessTokenExpiration() {
return this.invalidate().then(() => {
// this.trigger('sessionDataInvalidated');
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix this shit #3

export default Controller.extend({
actions: {
logout(session) {
session.invalidate(true, session.get('data.authenticated'));
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Puke. #2 to the rescue. I hope.

this.transitionToRoute('protected.index');
}, () => {
console.error('Failed to authenticate.');
// TODO - present a message for failed authentication
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Captured in #1

</div>
</section>
</nav>
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What a simple and active NAVBAR! So good. Look at how the Login button changes accordingly and highlights nicely when you're on the login page. Love it.

…ion Screen (#12)

* Playing with models

* #7 README information.

* #11, #13, & #14 Cleaning up and renaming all modules.  Fixing security issues.  Abandoning model folder/namespaces.
@nadnoslen nadnoslen merged commit 888865a into master Nov 17, 2018
@nadnoslen nadnoslen deleted the ember-simple-auth branch November 17, 2018 20:33
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.

1 participant