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

Add a login redirect to the lambda for restricted requests with no login session #56

Open
jdub233 opened this issue Feb 22, 2024 · 0 comments
Assignees

Comments

@jdub233
Copy link
Contributor

jdub233 commented Feb 22, 2024

The Lambda receives a url for the Shib Handler with the request headers. It can use this to return an html response that includes a login redirect for restricted media requests that have no existing login session.

Another option might be to offload the login redirect to a custom apache error page, if apache has enough information in the request to generate the login redirect itself. In this scenario, the Lambda might return a 401 Unauthorized status code, which is arguable more correct because it specifically means a request for restricted content that came with no authorization session information. Then apache might be configured to respond to 401 errors with a custom page that included the login redirect.

@jdub233 jdub233 self-assigned this Mar 6, 2024
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