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

Changes for Doorkeeper 5.2 #85

Merged
merged 1 commit into from
Nov 4, 2019
Merged

Changes for Doorkeeper 5.2 #85

merged 1 commit into from
Nov 4, 2019

Conversation

toupeira
Copy link
Member

@toupeira toupeira commented Sep 24, 2019

Closes #88

@linhdangduy
Copy link
Contributor

linhdangduy commented Oct 11, 2019

@toupeira
I'm the person make some changes at Doorkeeper that mentioned in above issues.
especially on this pull request: doorkeeper-gem/doorkeeper#1277
Seem like there are other changes, too (like getting Rails 6 running) but I'm happy to work on this problem.
How could I join?

@toupeira toupeira mentioned this pull request Oct 13, 2019
@toupeira
Copy link
Member Author

@linhdangduy thanks for offering your help, that's greatly appreciated! ❤️

I've extracted Rails 6 support into its own issue and removed it again from .travis.yml in this PR. If you want to work on that, you're very welcome to fork and submit a PR.

IIRC the Doorkeeper 5.2 compatibility is pretty much done now in this PR, Travis is passing so I think I'll take another look at it this week and will cut a release.

In the meantime, if you or anybody else could do a review, or test it in your application, that would be very awesome!

@Ex-Ark
Copy link

Ex-Ark commented Nov 4, 2019

I had the same problem as the original issue

wrong number of arguments (given 3, expected 1..2)
doorkeeper (5.2.1) lib/doorkeeper/oauth/pre_authorization.rb:20:in initialize'
doorkeeper-openid_connect (1.6.2) lib/doorkeeper/openid_connect/oauth/pre_authorization.rb:8:in initialize'

Using this branch makes the error disappear and the rest of my flow is now working.
Thanks for the fix !

env:

rails 6.0
ruby 2.5.7 (mingw32)
doorkeeper-openid_connect (1.7.0 3f53e0f)

@toupeira toupeira changed the title WIP: Changes for Doorkeeper 5.2 Changes for Doorkeeper 5.2 Nov 4, 2019
@toupeira toupeira merged commit c663f7f into master Nov 4, 2019
@toupeira toupeira deleted the chore/doorkeeper-5.2 branch November 4, 2019 14:20
@camilo0365
Copy link

Thanks a lot @toupeira !! I will be experimenting with 1.7.0 and get back with feedback.

@ansonhoyt
Copy link

Thanks for landing this @toupeira! I see the autoload constants deprecation warning is gone, nice! Got my tests passing again and everything is still working for me.

The Doorkeeper migration guide could use more detail, but I was able to work through figuring out the translations changed, migrations changed and scopes are now required (not just for the db, but also auth calls).

Thanks again.

@nbulaj
Copy link
Member

nbulaj commented Feb 5, 2020

Oh, thanks @ansonhoyt for writing this. There are many changes and I can't always remember to fill migration guides with all the notes. Maybe you can remember what you've done during migration and add some missed details to upgrade guides ? Would be very helpfull!

Also I think I need to improve PR template 👍

@ansonhoyt
Copy link

@nbulaj thank you for your maintenance on such a useful gem!

That's a very fair request. I'll be revisiting our OIDC setup with my current project when working on getting the SSO working, so will keep an eye out for things to put into a PR. I'm missing deadlines on core features right now, so it might be a while 😟

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.

Support Doorkeeper 5.2
6 participants