Skip to content
This repository has been archived by the owner on Sep 12, 2021. It is now read-only.

Make FakeJWTAuthenticatorService working without started app #294

Merged
merged 1 commit into from
Feb 26, 2015
Merged

Make FakeJWTAuthenticatorService working without started app #294

merged 1 commit into from
Feb 26, 2015

Conversation

julien-lafont
Copy link
Contributor

When the encryptSubject configuration is activated, the encryption rely on Crypto.encryptAES which require a started application (https://github.com/playframework/playframework/blob/2.3.x/framework/src/play/src/main/scala/play/api/libs/Crypto.scala#L59).

By just setting encryptSubject to false in test, it should allows to initiate the JWSAuthenticator before the WithApplication block.

Disable encryptSubject in FakeJWTAuthenticator because it rely on Crypto play lib which a required a started app
@coveralls
Copy link

Coverage Status

Coverage increased (+1.08%) to 100.0% when pulling db3b225 on studiodev:patch-2 into 76bb34c on mohiva:master.

@akkie
Copy link
Contributor

akkie commented Feb 26, 2015

Good catch. Thanks

akkie added a commit that referenced this pull request Feb 26, 2015
Make FakeJWTAuthenticatorService working without started app
@akkie akkie merged commit 5826b29 into mohiva:master Feb 26, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
3 participants