Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cross origin authentication #30

Open
bekce opened this issue Jan 5, 2018 · 0 comments
Open

Cross origin authentication #30

bekce opened this issue Jan 5, 2018 · 0 comments

Comments

@bekce
Copy link
Owner

bekce commented Jan 5, 2018

To get the logged in user info on client pages, a cross origin endpoint could be implemented. This requires a javascript function to be called during document load on client page.

JS will send: clientId, http origin header of client page (automatic via browser), withCredentials=true.

Endpoint will check long term cookie on oauthly, whether given client id and user in cookie has a grant record, and whether the origin header matches the allowed origin setting of the client. If all three match, it will return an id_token (jwt) of the user. It will be then passed to server side of the client by user agent.

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

No branches or pull requests

1 participant