Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
co2
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Pixel Humain
co2
Commits
cd78b58d
Commit
cd78b58d
authored
5 days ago
by
Sitraka Philippe RADAMANIRINA
Browse files
Options
Downloads
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
bada54b4
9d561b11
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
controllers/oauth/AuthHandler.php
+11
-1
11 additions, 1 deletion
controllers/oauth/AuthHandler.php
with
11 additions
and
1 deletion
controllers/oauth/AuthHandler.php
+
11
−
1
View file @
cd78b58d
...
...
@@ -25,7 +25,17 @@ class AuthHandler
{
$attributes
=
$this
->
client
->
getUserAttributes
();
if
(
$this
->
client
->
getId
()
==
"ademe"
||
$this
->
client
->
getId
()
==
"tierslieuxorg"
||
$this
->
client
->
getId
()
==
"fabmobio"
||
$this
->
client
->
getId
()
==
"tierslieuxoccitanie"
){
if
(
$this
->
client
->
getId
()
==
"ademe"
||
$this
->
client
->
getId
()
==
"tierslieuxorg"
||
$this
->
client
->
getId
()
==
"fabmobio"
||
$this
->
client
->
getId
()
==
"tierslieuxoccitanie"
||
$this
->
client
->
getId
()
==
"lescaecoop"
)
{
// service configuré ici
// var_dump($attributes);
// exit;
// $email = ArrayHelper::getValue($attributes, 'email');
// $name = ArrayHelper::getValue($attributes, 'name');
// $username = ArrayHelper::getValue($attributes, 'preferred_username');
// if(empty($username)){
// $username = ArrayHelper::getValue($attributes, 'username');
// }
// $id = ArrayHelper::getValue($attributes, 'sub');
$email
=
ArrayHelper
::
getValue
(
$attributes
,
'email'
);
$name
=
ArrayHelper
::
getValue
(
$attributes
,
'name'
);
$username
=
ArrayHelper
::
getValue
(
$attributes
,
'preferred_username'
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment