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

Added authorization. #97

Merged
merged 1 commit into from
Oct 28, 2020
Merged

Added authorization. #97

merged 1 commit into from
Oct 28, 2020

Conversation

ajstanley
Copy link
Contributor

GitHub Issue: (Islandora/documentation#1447)

What does this Pull Request do?

FFMpeg had been failing on files that were not visible to anonymous viewers. This adds token-based authentication.

What's new?

Not much. I grabbed the token from the incoming request object and jammed it (© Danny Lamb ) into ffmpeg as a header.

How should this be tested?

Create an Audio media in a non-open filesystem. A service file should generate. If there are any problems you'll see them in the homarus.log

Interested parties

@Islandora/8-x-committers @Natkeeran @dannylamb

@Islandora Islandora deleted a comment from codecov bot Feb 28, 2020
@whikloj
Copy link
Member

whikloj commented Feb 28, 2020

@ajstanley So the 512 character limit is not an issue?

@ajstanley
Copy link
Contributor Author

@whikloj -It doesn't seem to be. The character limit came up in a discussion group, but I was unable to find any other reference to it. This one works for me.

Copy link
Member

@elizoller elizoller left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works as described. Tested with a resource not accessible by anonymous user and then added PR and homarus was able to reach the file.

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