rit-sse / old-api

The unified SSE API.
MIT License
1 stars 5 forks source link

Support callback parameter on auth/{provider} #29

Closed craigcabrey closed 9 years ago

craigcabrey commented 9 years ago

Add a callback parameter to the /auth/{provider} endpoint.

Example: GET /api/v1/auth/google?callback="http://{client-app-here}/{path}"

This will encode the callback into a JSON base64 encoded state string which is sent off to the provider as part of the OAuth2 process. If a callback is present after successful authentication, we will redirect to that callback with the generated token as a parameter:

302 {callback}?token={token}