Skip to content

Conversation

@findus
Copy link
Contributor

@findus findus commented Oct 3, 2022

No description provided.

belst and others added 6 commits April 13, 2022 14:48
…le infrastructure code for a dockerized setup

This Patch adds basic stream access management to ovenauth.
User can choose who can watch the stream:
- Per default only users that are logged in can watch anything
- A streamer can further restrict access to a subset of registered accounts within the dashboard
- A streamer can also flag their stream as a public stream, if the flag is set also unregistered visitor are able to watch it.

After login the frontend sends a token generate request to the backend. The backend generates a uuid, saves it to the
database and sends it back to the frontend.
With this token the logged-in user is able to access restricted resources on the server.

Nginx or a server that supports auth requests is required for this feature to work.
Frontend:

    AuthService:
    - When logged out AuthService now has guest_user with guest token, instead of just being null
    - Implemented refresh token logic to generate new token
    - Implemented allowedUsers() and allowedToWatch() backend call

    Dashboard:
    - Now scrollable on small mobile devices

    Navbar:
    - Made Navbar usable on mobile devices

    api:
    - Added username and token arguments to makeRequest so that it is possible to send both as request headers

    Footer:
    - used environment variable for text string

    index.css:
    - included loading spinner

    package-json:
    - Bumped solid-app-router to 0.3.3, fixes solidjs/solid-router#112

Backend:

    - implemented Token CRUD Logic

Infra:
    - Included basic docker compose environment to set up nginx/ove/ovenauth
    - Included auth requests to nginx.conf
Users are now able to record and download their streams.

Frontend:
- New record tab: Enable and disable recording and download past VODs.

Backend:
- Enabled header based token auth
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.

2 participants