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 Oauth frontend and backend improvements #718

Merged
merged 16 commits into from
Nov 30, 2024

Conversation

Boy132
Copy link
Member

@Boy132 Boy132 commented Nov 18, 2024

Adds oauth buttons to the filament auth.
Improves the backend and makes adding providers easier.
Adds more default providers.

No oauth for the old auth/ old client area auth! So only admins can use oauth for now!

Note: There is no "automatic registration" when using oauth. If you login via oauth but there is no linked user found, you will be redirected to the login page!

grafik
grafik

@Boy132 Boy132 changed the title Add Oauth frontend and backend Add Oauth frontend and backend improvements Nov 18, 2024
@Boy132 Boy132 self-assigned this Nov 18, 2024
@Boy132 Boy132 mentioned this pull request Nov 18, 2024
5 tasks
Copy link
Member

@lancepioch lancepioch left a comment

Choose a reason for hiding this comment

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

Looks great so far!

config/auth.php Outdated Show resolved Hide resolved
config/auth.php Outdated Show resolved Hide resolved
composer.json Outdated Show resolved Hide resolved
Comment on lines +65 to +66
foreach (config('auth.oauth') as $name => $data) {
config()->set("services.$name", array_merge($data['service'], ['redirect' => "/auth/oauth/callback/$name"]));
Copy link
Member

Choose a reason for hiding this comment

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

In the docker container we should probably cache the config on run, want to do that here or can we make an issue for that?

Copy link
Member Author

Choose a reason for hiding this comment

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

Not sure what you mean by that?

app/Filament/Resources/UserResource/Pages/EditProfile.php Outdated Show resolved Hide resolved
app/Filament/Pages/Auth/Login.php Outdated Show resolved Hide resolved
Copy link
Member

@notAreYouScared notAreYouScared left a comment

Choose a reason for hiding this comment

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

LGTM <3

@Boy132 Boy132 requested a review from lancepioch November 26, 2024 08:07
@Boy132 Boy132 merged commit b208835 into pelican-dev:main Nov 30, 2024
15 checks passed
@Boy132 Boy132 deleted the oauth/auth-frontend branch November 30, 2024 16:38
@github-actions github-actions bot locked and limited conversation to collaborators Nov 30, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants