Skip to content
This repository was archived by the owner on Apr 3, 2019. It is now read-only.

Conversation

@shane-tomlinson
Copy link

@shane-tomlinson shane-tomlinson commented Mar 15, 2019

fixes #75

We want to retire fxa-basket-proxy and still need a way to test that basket functionality works.

Right now the basket proxy shuttles requests to the basket server, using a shared secret for authentication. Basket itself can also authenticate with OAuth tokens.

So that we can continue to test on fxa-dev boxes, fake.js serves CORS requests and accepts OAuth access tokens.

blocks mozilla/fxa-content-server#7050

@ghost ghost assigned shane-tomlinson Mar 15, 2019
@ghost ghost added the waffle:active label Mar 15, 2019
@shane-tomlinson shane-tomlinson force-pushed the 75-cors-oauth-fake-server branch from 7234968 to 5da64d8 Compare March 18, 2019 22:04
@shane-tomlinson shane-tomlinson marked this pull request as ready for review March 18, 2019 22:05
@shane-tomlinson
Copy link
Author

@mozilla/fxa-devs - r?

Copy link
Contributor

@rfk rfk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me! verifyOAuthToken will silently succeed if there's no Authorization header present, but you guard against that in the code here, so 👍.

@shane-tomlinson shane-tomlinson force-pushed the 75-cors-oauth-fake-server branch from 5da64d8 to 046476c Compare March 19, 2019 11:29
@shane-tomlinson shane-tomlinson merged commit 929113b into master Mar 19, 2019
@ghost ghost removed the waffle:review label Mar 19, 2019
@shane-tomlinson shane-tomlinson deleted the 75-cors-oauth-fake-server branch March 19, 2019 11:45
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add OAuth token handling/CORS to fake basket server for testing purposes

3 participants