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

Craft 3 support #7

Closed
espensgr opened this issue Mar 9, 2018 · 17 comments
Closed

Craft 3 support #7

espensgr opened this issue Mar 9, 2018 · 17 comments
Assignees

Comments

@espensgr
Copy link

espensgr commented Mar 9, 2018

Hey,

Any ETA for plugin store?

@roelvanhintum
Copy link
Contributor

@espensgr We are working on Craft 3 support, but since we are not yet running projects on Craft 3 there is not a lot of time i get to spend on this. I'm hoping to get the plugin done in april. We will submit it same day we get the release done i'll submit it to the store.

@roelvanhintum roelvanhintum self-assigned this Mar 9, 2018
@roelvanhintum roelvanhintum changed the title Craft 3 Craft 3 support Mar 9, 2018
@espensgr
Copy link
Author

espensgr commented Mar 9, 2018

@roelvanhintum Good to know 👍

@dowadidi
Copy link

dowadidi commented May 8, 2018

+1 😊

@PRASS95
Copy link

PRASS95 commented Jun 7, 2018

+1

@RichardJong
Copy link
Contributor

@roelvanhintum Thanks for the great work so far. Any idea if the launch of v3 is imminent? Otherwise we'll develop our own solution.

@roelvanhintum
Copy link
Contributor

roelvanhintum commented Jun 29, 2018

I'm working on it. I'm hoping to get things working today. Sorry, for the insane delay.
Luckily the Craft 3 docs are a lot better by now. 😄

@roelvanhintum
Copy link
Contributor

roelvanhintum commented Jun 29, 2018

Check 2.0.0-beta.1. It should be fully functional, i just didn't test it in a production environment yet! Please, let me know if you have any problems!

@dowadidi
Copy link

Will do! Thank you!

@RichardJong
Copy link
Contributor

RichardJong commented Jul 2, 2018

Thanks for the beta!
However the plugin doesn't enforce the use of the 2FA code for admin pages, because of craftcms/cms#2473

Steps to reproduce:

  1. Setup 2FA for your account
  2. Login with normal credentials
  3. Instead of entering 2FA code, go directly to http://yoursite/admin/dashboard
  4. You're fully logged in, despite not entering the 2FA code

Please correct me if I missed something

@roelvanhintum
Copy link
Contributor

@RichardFrontwise Just tried to reproduce the issue, but i got logged out as supposed to. Can you give me some specifics about your settings? Do you have a different admin path or domain?

@RichardJong
Copy link
Contributor

Did a clean craft install and the plugin works as expected!
Discovered that the custom defaultCookieDomain in general.php causes the malfunction.

@roelvanhintum
Copy link
Contributor

Thanks! Sounds like that should not influence the plugin.
I will run some tests on changing the config:

  • defaultCookieDomain
  • baseCpUrl
  • cpTrigger

@RichardJong
Copy link
Contributor

Digging deeper: defaultCookieDomain results in a redirect loop.
The login problem I described earlier is because another plugin has the checkPermission function in its init():

if (Craft::$app->getUser()->checkPermission('performUpdates')) {
    # code...
}

@roelvanhintum
Copy link
Contributor

Ok, i'll look into hooking into this on a lower level. Right now it passes through authentication and logs out when the 2FA is not verified.

@roelvanhintum
Copy link
Contributor

@RichardFrontwise in beta 2 the redirect loop should be fixed. I couldn't move the rest of the logic to a lower level due to some limitations in Craft's routing structure.

@RichardJong
Copy link
Contributor

Awesome, thanks!
Discovered another issue: if you enable the debug toolbar in the Control panel, the post call of the 2FA returns a 403 Unauthorized.

@roelvanhintum
Copy link
Contributor

Debug toolbar issue is discussed in #9

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

No branches or pull requests

5 participants