Skip to content

Arkos13/auth-service-symfony

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Setting encryption key

You need to generate the encryption key -

$ docker exec auth-service-php-fpm php -r 'echo base64_encode(random_bytes(32)), PHP_EOL;'

or

$ make generate-encryption-key'

In the .env file, you need to change param OAUTH2_ENCRYPTION_KEY

Setting public and private keys

You need to generate public and private keys -

$ openssl rsa -in private.key -passin pass:_passphrase_ -pubout -out public.key
$ openssl genrsa -passout pass:_passphrase_ -out private.key 2048

The generated keys must be moved to the /var/oauth folder

Setting network auth

To authenticate via social networks, you need to configure the following parameters in .env -

OAUTH_FACEBOOK_CLIENT_ID=
OAUTH_FACEBOOK_CLIENT_SECRET=

OAUTH_GOOGLE_CLIENT_ID=
OAUTH_GOOGLE_CLIENT_SECRET=

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages