Skip to content
This repository has been archived by the owner on Mar 4, 2020. It is now read-only.

Add an /auth/status endpoint #10

Closed
toolness opened this issue Apr 1, 2015 · 0 comments
Closed

Add an /auth/status endpoint #10

toolness opened this issue Apr 1, 2015 · 0 comments
Assignees

Comments

@toolness
Copy link
Contributor

toolness commented Apr 1, 2015

GET /auth/status

This CORS-only call has the same strict cross-origin restrictions as /auth/persona and returns a JSON blob similar to it too. However, instead of taking a Persona assertion, it simply uses the session cookie of the request to glean information about the current user. It returns no content if no user is currently logged in.

On its own, this isn't very useful, but if we add OAuth2 endpoints for id.webmaker.org (see also #7) and allow users to log in through it, then /auth/status can be used by the Teach site to get login info for the current user, once a user has been redirected back to it at the end of the authorization flow.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant