Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Oauth Bundle Laravel Package

hwi/oauth-bundle

Symfony bundle for OAuth1.0a/OAuth2 login and user authentication. Supports Symfony 6.4–8.0 (PHP 8.3+) and integrates dozens of providers (Google, GitHub, Facebook, Apple, LinkedIn, Azure, Keycloak, etc.).

View on GitHub
Deep Wiki
Context7

Step 2x: Setup GitLab

First you will have to register your application on GitLab. Check out the documentation for more information: https://docs.gitlab.com/ee/integration/oauth_provider.html.

Next configure a resource owner of type gitlab with appropriate client_id & client_secret.

Using read_user scope:

# config/packages/hwi_oauth.yaml

hwi_oauth:
    resource_owners:
        any_name:
            type:                gitlab
            client_id:           <client_id>
            client_secret:       <client_secret>

Using openid scope:

# config/packages/hwi_oauth.yaml

hwi_oauth:
    resource_owners:
        any_name:
            type:                gitlab
            client_id:           <client_id>
            client_secret:       <client_secret>
            infos_url:           https://gitlab.com/oauth/userinfo
            scope:               "openid email"
            paths:
                identifier: sub
                nickname: nickname
                realname: name
                email: email
                profilepicture: picture

Using the email scope is optional.

When you're done. Continue by configuring the security layer or go back to setup more resource owners.

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
babenkoivan/elastic-client
innmind/static-analysis
innmind/coding-standard
datacore/hub-sdk
alengo/sulu-http-cache-bundle
develia/commons
cuci/prototurk-sdk
cuci/prototurk-sdk-symfony
develia/geo-bundle
dreamzy/livewire-charts
touchestate-sdk/php-sdk
22h/doctrine-garbage-collection-bundle
imbo/imbo-coding-standard
visualbuilder/filament-lottie
servicioslineaonce/starter-kit
atomcoder/laravel-reorderable
irajul/filament-shadcn-theme
agtp/agtp-php
agtp/mod-php
centraldesktop/protobuf-php