How to integrate Unikname Connect with a Symfony application?

Here is documentation about integrating Unikname Connect with any Symfony applications.

Compatibility: Symfony 4.4.x/5.x and more

So it can also be used with Prestashop or Sylius products

:point_right: Our recommendation is to start with the following bundle for Symfony:

Installation in your Symfony application

You can follow the official documentation for your application :point_right: HWIOAuthBundle/ at master · hwi/HWIOAuthBundle · GitHub

You can also use Composer:

composer require hwi/oauth-bundle


When configuring the “resource owner”, chose “Others” in the list

Then use the following configuration for the OAuth2 config (Unikname Connect doesn’t support OAuth 1):

# app/config/config.yml

            type:                oauth2
            class:               \HWI\Bundle\OAuthBundle\OAuth\ResourceOwner\GenericOAuth2ResourceOwner
            client_id:           <client_id>
            client_secret:       <client_secret>
            scope:               "openid"
            user_response_class: HWI\Bundle\OAuthBundle\OAuth\Response\PathUserResponse
                identifier:      sub

Replace <client_id> and <client_secret> by these provided by the Unikname team.

Of course, you also need a Unikname Connect account to be able to finalize the set up of your application:

That’s it! :clap:

:interrobang: How to get help?

If you have questions or need help to do this integration, just ask below :arrow_down:


Hi there, thanks for the Symfony integration. Just a quick fix:

“Our recommendation is to start with the following framework:” => this not a framework but a bundle

1 Like

You’re right, updated!

1 Like

Updated to explain how to use it with Composer.