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

expose an authenticateRequest function #137

Merged
merged 1 commit into from
Apr 25, 2024

Conversation

twrichards
Copy link
Contributor

...on AuthAction & APIAuthAction which can be called with a RequestHeader allowing it to be used in play filters for example.

frontend uses play filters to ensure all of preview and admin endpoints are wrapped in auth... in guardian/frontend#27012 we replace plain Google auth with pan-domain-authentication, but filters only deal in RequestHeader (understandably) but it would be useful to be able to reuse all of the authentication and redirect logic in the AuthAction, fortunately this was relatively straigh-forward (and is solving the problem when published locally).

…tion` which can be called with a `RequestHeader` allowing it to be used in play filters for example
@twrichards twrichards force-pushed the expose-authenticateRequest-method branch from a4e1d58 to 7c182f8 Compare April 23, 2024 16:44
@twrichards
Copy link
Contributor Author

guardian/frontend#27012 is all working nicely locally, so need to release this library version asap before I can test frontend changes in CODE (and release)

@twrichards twrichards merged commit 21d7e32 into main Apr 25, 2024
1 check passed
@twrichards twrichards deleted the expose-authenticateRequest-method branch April 25, 2024 09:28
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

Successfully merging this pull request may close these issues.

3 participants