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

feat: 2FA Progress Sync #920

Closed
wants to merge 3 commits into from
Closed

feat: 2FA Progress Sync #920

wants to merge 3 commits into from

Conversation

AGuyNamedJens
Copy link
Collaborator

@AGuyNamedJens AGuyNamedJens commented Dec 10, 2023

Managed to get 2FA integration working, it yet has to be connected to the actual login method for users. Feel free to debug, change it or whatever. Basics are implemented.

See:
app/Http/Controllers/Auth/Login2FAController.php
app/Http/Controllers/LoginCheckpointController.php
app/Http/Controllers/Kernel.php
app/Http/Models/RecoveryToken.php
app/Http/Models/User.php
database/UserFactory.php
routes/web.php
themes/default/views/auth/2fa-secret.blade.php
composer.json

For my changes

@AGuyNamedJens AGuyNamedJens added Feature Adding a new feature, or substantial improvements on existing functionality In Progress labels Dec 10, 2023
@AGuyNamedJens AGuyNamedJens mentioned this pull request Dec 10, 2023
@AGuyNamedJens AGuyNamedJens linked an issue Dec 10, 2023 that may be closed by this pull request
@GeekCornerGH
Copy link

How would it links to ptero 2fa?

@AGuyNamedJens
Copy link
Collaborator Author

How would it links to ptero 2fa?

I don't have enough knowledge about how Pterodactyl does it, I honestly don't think we can just hook into their 2FA system because that can basically beat the whole security logic of 2FA

@sybetjeh
Copy link

How would it links to ptero 2fa?

I don't have enough knowledge about how Pterodactyl does it, I honestly don't think we can just hook into their 2FA system because that can basically beat the whole security logic of 2FA

yeah please don't what would the point be then?

@S0ly
Copy link
Member

S0ly commented May 4, 2024

no update since 2023 ?

@AGuyNamedJens
Copy link
Collaborator Author

no update since 2023 ?

Feel free to provide your own update, I'm clueless at this point which is why I request other contributions to join in

}

// Create a new secret and display the QR code
public function Attempt2FA()
Copy link
Contributor

Choose a reason for hiding this comment

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

attempt2Fa()

Use one function naming style bcs lower is for example isValidRecoveryKey

* @param string $value
* @return \Illuminate\Database\Eloquent\Casts\Attribute
*/
protected function google2faSecret(): Attribute
Copy link
Contributor

Choose a reason for hiding this comment

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

U can use encrypted cast without this

@S0ly S0ly changed the title 2FA Progress PR, open for contributions 2FA Progress Sync May 15, 2024
@S0ly S0ly added Low Priority Can wait, not urgent. Handle when possible Help Wanted May need your help to resolve it labels May 15, 2024
@S0ly
Copy link
Member

S0ly commented May 17, 2024

I tried to resolve the conflict that was whit .gitignore hope I didnt missed anything

@S0ly S0ly added the Inactive No activity since a long time label May 22, 2024
@S0ly S0ly changed the title 2FA Progress Sync feat: 2FA Progress Sync Jun 4, 2024
@S0ly
Copy link
Member

S0ly commented Jun 13, 2024

what we do of this pull request since its totally inactive and not finished ?

@S0ly
Copy link
Member

S0ly commented Jun 17, 2024

@IceToast @1day2die

@AGuyNamedJens
Copy link
Collaborator Author

what we do of this pull request since its totally inactive and not finished ?

I guess no one wants it implemented? I got stuck at the moment of login methods, as previously discussed it's due to how we still depend on Laravel/ui which makes integration impossible with 2FA

@S0ly
Copy link
Member

S0ly commented Jun 19, 2024

personally it would be interesting me to have this but its not currently on my priority list :)
and I dont know how to help whit it

@S0ly
Copy link
Member

S0ly commented Jul 24, 2024

we should close the PR if no one is gonna do it, it will be available for reopen later

@IceToast IceToast closed this Jul 24, 2024
@AGuyNamedJens
Copy link
Collaborator Author

we should close the PR if no one is gonna do it, it will be available for reopen later

I agree.

@S0ly S0ly deleted the 2FA-Progress branch November 11, 2024 02:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature Adding a new feature, or substantial improvements on existing functionality Help Wanted May need your help to resolve it Inactive No activity since a long time Low Priority Can wait, not urgent. Handle when possible
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

[Feature] 2FA
6 participants