See https://github.com/LDSorg/fxos-oauth2-jquery-demo for an example of an implicit grant strategy (browser only, no server).
manifest.json:
{ "name": "OAuth2 jQuery Demo" , "description": "Login using OAuth2 / OAuth3 with jQuery" , "version": "1.0" , "type": "privileged" , "launch_path": "/index.html" , "developer": { "name": "John Doe" , "url": "https://johndoe.com" } , "redirects": { "from": "http://should-be-a-fake-domain.com" , "to": "/oauth-close.html" } }
Note:
There must be a privileged application:
"type": "privileged"
And the redirects should be in place:
"redirects": { "from": "http://use-a-fake-domain.com/my-redirect" , "to": "/oauth-close.html" }
Then you set redirect_uri to http://use-a-fake-domain.com . Of course, you could use your own domain - and you might need it if you canโt add the fake domain to the whitelist of the supplierโs domain that you are using - I just like to use the fake domain because it is a visual queue for me.
source share