문제

The use of http digest authentication in Symfony requires a 'key' property to be specified:

firewalls:
    main:         
        pattern: ^/
        anonymous: ~
        form_login: false            
        provider: fos_user_bundle
        http_digest:
            realm: "Example"
            key: "key_value_here"

I can't find any documentation for the key.

What is this key? In what way is this used? Are there any considerations I should make when choosing a value?

도움이 되었습니까?

해결책

It's just a secret key, common to many encryption mechanisms.

You can re-use your application's secret (from parameters.ini), which is what I would do

key: "%secret%"
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top