mariovalney / laravel-keycloak-web-guard

Simple Keycloak Guard to Laravel Web Routes - https://packagist.org/packages/vizir/laravel-keycloak-web-guard
146 stars 80 forks source link

Sending attributes and they are not written to the user #61

Closed marciodiasdeveloper closed 2 years ago

marciodiasdeveloper commented 2 years ago

sending attributes and they are not written to the user

    if ($user) {
        $data = [
            'email' => $user->email,
            'username' => $user->email,
            'id' => $user->id,
            'firstName' => $user->name,
            'lastName' => '',
            'enabled' => true,
            'emailVerified' => true,
            'attributes' => [
                'cpf' => '111.111.111-11',
                'subdomain' => ['subdomain.domain.com']
            ],
            // 'roles' => ['string'],
            // 'groups' => ['string'],
            'requiredActions' => ['requiredActions']
        ];
        return response()->json($data);
    }
mariovalney commented 2 years ago

I'm not sure about what you are trying to achieve. Please, update the thread with more details.

marciodiasdeveloper commented 2 years ago

When I send the attributes with the federation user, I can't get access

marciodiasdeveloper commented 2 years ago

...