Download the PHP package skayocrafts/social-gitlab without Composer
On this page you can find all versions of the php package skayocrafts/social-gitlab. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download skayocrafts/social-gitlab
More information about skayocrafts/social-gitlab
Files in skayocrafts/social-gitlab
Package social-gitlab
Short Description GitLab integration for Social
License MIT
Informations about the package social-gitlab
GitLab login provider for Social
This plugin provides a GitLab integration for Social 2 for Craft CMS.
Requirements
This plugin requires Social 2.0.0 or later.
Installation
To install the plugin, follow these instructions.
-
Open your terminal and go to your Craft project:
cd /path/to/project
-
Then tell Composer to load the plugin:
composer require skayocrafts/social-gitlab
- In the Control Panel, go to Settings → Plugins and click the “Install” button for GitLab.
Setup
To enable the GitLab login provider, go to Social → Settings → Login Providers, and configure the “GitLab” login provider.
Self-Hosted GitLab Config
If you have a self-hosted GitLab and want to use it instead of gitlab.com for OAuth,
then you can set the domain in config/social.php
like this:
For more information about the social configuration, look here
Some additional Information
Default User Field Mapping
The GitLab login provider defines the following user field mapping by default:
You can override and extend the default mapping using the loginProviders config.
Profile Object
The profile response for the GitLab login provider is a GitlabResourceOwner object.
Methods
getId()
getName()
getUsername()
getEmail()
getAvatarUrl()
getProfileUrl()
getToken()
isActive()
isAdmin()
isExternal()
toArray()
getDomain()
setDomain()
getApiClient()
get()
All versions of social-gitlab with dependencies
dukt/social Version ^2.0.0-beta.10
omines/oauth2-gitlab Version ^3.1