-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from sandybemonkey/ADD_UNIT_TEST
Add the first unit test
- Loading branch information
Showing
24 changed files
with
324 additions
and
5,715 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
/** | ||
* Init the lougout process by calling logoutHelper.logout() of helpers/logout. | ||
* Init the logout process by calling logoutHelper.logout() of helpers/logout. | ||
* @see @link{ https://partenaires.franceconnect.gouv.fr/fcp/fournisseur-service# } | ||
*/ | ||
import config from '../config/config.json'; | ||
import idHintToken from '../helpers/idHintToken'; | ||
import idHintToken from './idHintToken'; | ||
|
||
/** | ||
* Format the url 's that is used in a redirect call to France Connect logout API endpoint | ||
* @returns {string} | ||
*/ | ||
exports.logout = () => `${config.FC_URL}/api/v1/logout?id_token_hint=${idHintToken.getHintToken()}` | ||
+ `&state=${config.STATE}&post_logout_redirect_uri=${config.LOGOUT_REDIRECT_URL}`; | ||
exports.logout = () => `${config.LOGOUT_URL}?id_token_hint=${idHintToken.getHintToken()}` | ||
+ `&state=${config.STATE}&post_logout_redirect_uri=${config.LOGOUT_REDIRECT_URL}`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.