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

Add Octane GitHub guide. #1832

Merged
merged 10 commits into from
Aug 1, 2019
Merged

Add Octane GitHub guide. #1832

merged 10 commits into from
Aug 1, 2019

Conversation

muziejus
Copy link
Contributor

@muziejus muziejus commented May 2, 2019

Hi, all. I made great use of the GitHub guide to implement GitHub authentication/authorization on an Ember Octane app I'm working on, but I didn't like that the current guide:

  • uses jQuery via ember-ajax
  • uses deprecated authorizers
  • uses the Ember app's url as the callback url
  • uses a mock to serve as the token exchange server instead of showing how to implement/deploy a "real" one

So I updated it and offer the update here as a complement, instead of replacement, to the original. Thanks!

temporary authorization code. The temporary authorization code acts as a
single use bridge to authorization.

### Add `ember-simple-auth` Mixins to Routes

Choose a reason for hiding this comment

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

Any chance you could add how to use a custom mixin ... I'm trying to override authenticationRoute

@marcoow marcoow requested a review from a team May 31, 2019 15:10
Copy link
Contributor

@jayjayjpg jayjayjpg left a comment

Choose a reason for hiding this comment

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

Thank you so much for writing this really detailed guide - it reads great ✨ I left a few more suggestions - let me know what you think!

As with the original `ember-simple-auth` guide, the approach here mirrors any
OAuth2 explicit grant flow used also by Facebook, Google, etc.

You can find a sequence diagram for the flow [here](http://github.com/simplabs/ember-simple-auth/guides/assets/esa-initial-flow.txt.png).
Copy link
Contributor

Choose a reason for hiding this comment

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

It seems the link does not return an image yet - can you check if this works for you?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done.

guides/octane-auth-torii-with-github.md Outdated Show resolved Hide resolved
guides/octane-auth-torii-with-github.md Outdated Show resolved Hide resolved
guides/octane-auth-torii-with-github.md Show resolved Hide resolved
@muziejus
Copy link
Contributor Author

@jessica-jordan Thanks for the edits! I've looked over the document and made some more changes incorporating your comments.

Copy link
Contributor

@jayjayjpg jayjayjpg left a comment

Choose a reason for hiding this comment

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

Awesome, thank you for writing this extensive Authorisation Guide - this reads great ✨

@jayjayjpg jayjayjpg merged commit 5a20b25 into mainmatter:master Aug 1, 2019
@jayjayjpg jayjayjpg self-assigned this Aug 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants