-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
api: Add authorization to viewership API (#60)
* api: Return a 404 on asset not found * api: Allow asset views to be fetched only by ID * api: Create consts for the param names * api/auth: Use path param on authorization instead * api: Add auth middleware to views API * api: Forward Origin header on auth request * api/auth: Forward CORS response headers back * api/auth: Fix authorization error We were sending the auth req url not the original url * api: Add Allow-Credentials to cors headers * api/auth: Rename auth request vars for clarity * api/auth: Add some logs to auth middleware Log origiunal request * api/auth: Grab original URI correctly * Revert "api/auth: Add some logs to auth middleware" This reverts commit 06d7a32.
- Loading branch information
Showing
5 changed files
with
68 additions
and
26 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 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