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 akka-http-oauth2-provider sub project. #94

Merged
merged 3 commits into from
Jul 5, 2016

Conversation

cdiniz
Copy link
Contributor

@cdiniz cdiniz commented Jul 4, 2016

Hi guys. I have been working on lightbend templates (play+slick+oauth2,akka-http-slick-oauth2) using your great scala-oauth2-provider. Since you don't have any helper for akka http, I decided to do it. What do you think? I have a sample template using the same helper: https://github.com/cdiniz/slick-akka-http-oauth2.

P.S. I'll work on tests for the accessTokenRoute asap.

@tsuyoshizawa
Copy link
Member

tsuyoshizawa commented Jul 5, 2016

Great! I'm not an akka-http user, so this PR would help for akka-http users.

I'll work on tests for the accessTokenRoute asap.

I see. Let me know when you complete the work.

val oauth2DataHandler: DataHandler[U]

val tokenEndpoint = new TokenEndpoint {
override val handlers = Map(
Copy link
Member

Choose a reason for hiding this comment

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

All authentications are enabled by default, it is not good to keep security.
Developers will use authentication they do not use without being aware.

Could you change this like Play subproject?

@cdiniz
Copy link
Contributor Author

cdiniz commented Jul 5, 2016

Hello. I removed the default tokenEndpoint as you suggested, and I added tests for the helper route. Is it ok for you?

@tsuyoshizawa
Copy link
Member

Is it ok for you?

@cdiniz Yes. Thank you.

Could you rename Oauth2Provider.scala to OAuth2Provider.scala?
Class name is OAuth2Provider but file name is different.

@cdiniz
Copy link
Contributor Author

cdiniz commented Jul 5, 2016

done!

@tsuyoshizawa tsuyoshizawa merged commit 1848a48 into nulab:master Jul 5, 2016
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