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

GitLab Provider id hydrator mapping not working #155

Closed
makkus183 opened this issue Jul 19, 2021 · 0 comments
Closed

GitLab Provider id hydrator mapping not working #155

makkus183 opened this issue Jul 19, 2021 · 0 comments

Comments

@makkus183
Copy link

Hey!

Issue

I am using the CakePHP SocialAuth Plugin and had the same error as mentioned here when using the GitLab Provider.

The hydrator mapping inside the GitLab Provider in getIdentity() is not working, user_id is null

My env

PHP: 7.4

Library: auth

Provider: GitLab

Provider options:

[
    'options' => [
            'gitlab' => [
                'applicationId' => 'xxx',
                'applicationSecret' => 'xxx',
                'scope' => [
                    'read_user',
                        ],
            ],
    ]
];
makkus183 added a commit to makkus183/auth that referenced this issue Jul 19, 2021
- updated fieldmapping for userId for the OAuth2 GitLab Provider
- added username field for the OAuth2 GitLab Provider
@makkus183 makkus183 mentioned this issue Jul 19, 2021
3 tasks
ADmad added a commit that referenced this issue Jul 19, 2021
@ADmad ADmad closed this as completed Jul 19, 2021
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

2 participants