68 Commits

Author SHA1 Message Date
niat8586 8fd633156f Merge pull request 'Switching over to oauth2 from toker' (#40) from develop into main
Reviewed-on: #40
2025-07-01 10:07:58 +02:00
niat8586 aae20169f5 Merge pull request 'Seperated composse file' (#38) from new-oauth-server into develop
Reviewed-on: #38
2025-04-29 13:26:08 +02:00
niat8586 d3c8340922 Seperated composse file
Due to tests not working as expected in other environments opted to split up the
compose file to separate files. This way we can have separation of what is loaded
by each file.

We use the include directive to add the files in the order they are needed.
2025-04-29 13:25:48 +02:00
niat8586 7f4ce8f0ae Merge pull request 'Expanded test to inlude oauth container' (#37) from new-oauth-server into develop
Reviewed-on: #37
2025-04-29 13:15:30 +02:00
niat8586 6c4c4530e4 Expanded test to inlude oauth container 2025-04-29 13:14:45 +02:00
niat8586 5a8a6ee997 Merge pull request 'Switched to new oauth server' (#36) from new-oauth-server into develop
Reviewed-on: #36
2025-04-29 12:49:19 +02:00
niat8586 172669c1f2 Switched to new oauth server
We now have a new Oauth server on dsv, so we will not use toker anymore.

Also added code to update email in the db if the logged in user has an email
2025-04-29 12:46:05 +02:00
niat8586 f40eb6544d Merge pull request 'develop' (#34) from develop into main
Reviewed-on: #34
2025-03-31 13:41:00 +02:00
niat8586 2ecdbf8d72 Merge pull request 'Removed manual check of email' (#35) from manual-email-check into develop
Reviewed-on: #35
2025-03-31 13:38:37 +02:00
niat8586 316ca7c042 Removed manual check of email
New users would never be able to login because of the manual checking of email.
This has happened since the requirements and code has changed over time and we
missed the manual constraint.

This is related to the fix where we removed the database constraint.
2025-03-31 13:33:46 +02:00
niat8586 a57d673c06 Merge pull request 'Remove email constratint' (#33) from remove-email-constraint into develop
Reviewed-on: #33
2025-03-31 12:32:11 +02:00
niat8586 1853ecfcc3 Remove email constratint
eamil field had a unique constraint on it which had side effects.
2025-03-31 12:31:04 +02:00
niat8586 4dd2c8a218 Merge pull request 'develop' (#31) from develop into main
Reviewed-on: #31
2025-03-27 06:57:28 +01:00
niat8586 35b1a306e1 Merge pull request 'Clarify about text' (#30) from about-text-rewrite into develop
Reviewed-on: #30
2025-03-27 06:49:37 +01:00
niat8586 349025f200 Clarify about text
The last paragraph in the about page, stated that 'All processing is done locally ...'.
It was not clear enough where 'locally' actually was.

Changed the last paragraph to have more clarity.
The rewrite reads like this:
'All processing is done locally at the Department of Computer and Systems Sciences (DSV), Stockholm University, Sweden.
 No information is transmitted to external servers or cloud services, ensuring your privacy and data security.'
2025-03-27 06:48:19 +01:00
niat8586 6eba61583d Merge pull request 'develop' (#29) from develop into main
Reviewed-on: #29
2025-03-26 10:40:48 +01:00
niat8586 9bf855875b Merge pull request 'Title in head element' (#28) from head-title-spelling into develop
Reviewed-on: #28
2025-03-26 10:17:34 +01:00
niat8586 b7b74f2e35 Title in head element
The title in the head element was mispelled previously
it showed 'Seshat Auido Transcriber'.

Now it's fixed to the correct spelling 'Seshat Audio Transcriber'.
2025-03-26 10:05:01 +01:00
niat8586 f7466a57df Use OAuth 2.0 Token Introspection during log in (#27)
Currently, it uses an endpoint similar to OpenID Connect UserInfo but with some differences. The endpoint does not require the "openid" scope for example. There is an ongoing effort to replace the OAuth 2.0 authorization server with a more standard compliant one which would break the endpoint (since it would require the "openid" scope). It is currently not possible to request the "openid" scope to future-proof since Spring would act differently if that scope is present and assume full OpenID Connect. That leads to requiring an id token to have been issued which the current authorization server does not do.

To get around this the implementation is changed to use a standard compliant Token Introspection endpoint to get access to the subject of the access token (which is the only part that's necessary right now). Since the endpoint is standard compliant it will work with any future authorization server.

It may be necessary to run docker compose up --build to get the latest version of the Toker containers.

Co-authored-by: Andreas Svanberg <andreass@dsv.su.se>
Reviewed-on: #27
Reviewed-by: Andreas Svanberg <andreass@dsv.su.se>
Co-authored-by: Nico Athanassiadis <nico@dsv.su.se>
Co-committed-by: Nico Athanassiadis <nico@dsv.su.se>
2025-03-25 15:48:32 +01:00
niat8586 e19f51bd3b Merge pull request 'develop' (#26) from develop into main
Reviewed-on: #26
2025-03-25 06:39:48 +01:00
niat8586 263774f74b Merge pull request 'about-and-progress-bar' (#25) from about-and-progress-bar into develop
Reviewed-on: #25
2025-03-24 14:01:23 +01:00
niat8586 3ca8101796 Restiled to work with mobile units
Previously when using a mobile unit there was a vertical and horizontal scroll outside the content.

Now there is no vertical or horizontal scrolling outuside the content area, and no horizontal scrolling when using a mobile device.
2025-03-24 13:23:50 +01:00
niat8586 e39c5daaa5 About page and progress bar
Added an about page that describes succinctly what the application is and what tech it is using.
Made it as a single page so that a link can be referenced in text.

Added a progressbar when uploading files.
2025-03-24 11:42:49 +01:00
niat8586 e175fdf664 Merge pull request 'develop into main' (#24) from develop into main
Reviewed-on: #24
2025-03-07 10:18:13 +01:00
niat8586 48845951cb Merge pull request 'Update README.md' (#23) from niat8586-patch-1 into develop
Reviewed-on: #23
2025-03-07 10:14:06 +01:00
niat8586 ee045fe3de Update README.md 2025-03-07 10:13:20 +01:00
niat8586 b16f6c2a24 Merge pull request 'Powered with Whisper AI' (#22) from whisper-text into develop
Reviewed-on: #22
2025-03-07 10:08:32 +01:00
niat8586 5dfa5875ee Powered with Whisper AI
Added text under the Seshat Audio Transcriber heading so that users know
that the application uses whisper ai. The text is also clickable and
opens a new tab or window that goes to https://openai.com/index/whisper
if the users wants to learn more about whisper ai.
2025-03-07 10:06:59 +01:00
niat8586 c3867b37ac Merge pull request 'Logging and queing' (#21) from develop into main
Reviewed-on: #21
2025-02-09 15:57:42 +01:00
niat8586 b56109eb4d Merge pull request 'Ensure that jobs are enqueued after application restart.' (#20) from ensure-requeuing-jobs-on-restart into develop
Reviewed-on: #20
2025-02-09 15:50:33 +01:00
niat8586 af439dda32 Ensure that jobs are enqueued after application restart.
Jobs that are in state of PROCESSING or PENDING will be enqueued after
application restart so users that have had an uploaded file in PROCESSING or PENDING do not
need to manually re-upload the files again.
2025-02-09 15:45:04 +01:00
niat8586 9f186c8406 Merge pull request 'Do not log transcribed text from whisper' (#19) from turn-off-verbose-mode into develop
Reviewed-on: #19
2025-02-07 11:37:27 +01:00
niat8586 5eeca0dcd0 Do not log transcribed text from whisper
Turning off the verbose mode when calling whisper process.
This should fix issue #17
2025-02-07 11:33:12 +01:00
niat8586 f6dfed08ee Merge pull request 'Will not use matomo' (#18) from matomo-web-analytics into develop
Reviewed-on: #18
2025-02-07 11:23:23 +01:00
niat8586 c14c38bf3f Will not use matomo
Decided to not use matomo for analytics.
The application is a single page.
Any statistics we want we can parse from the logs.

An issue #16 has been added to make the logs more parse friendly.
2025-02-07 11:18:43 +01:00
niat8586 5bd8350fb6 Merge pull request 'Changes in the matomo script' (#15) from matomo-web-analytics into develop
Reviewed-on: #15
2025-02-07 10:05:35 +01:00
niat8586 4b9ea7b148 Changes in the matomo script 2025-02-07 10:01:15 +01:00
niat8586 fc166e7e43 Merge pull request 'Testing matomo webanalytics' (#14) from matomo-web-analytics into develop
Reviewed-on: #14
2025-02-07 09:54:51 +01:00
niat8586 32e75b17c0 Testing matomo webanalytics
Adding some web-analytics for statistics purposes
2025-02-07 09:50:36 +01:00
niat8586 f5fed6d30c Merge pull request 'Mime type validation - Client side' (#13) from develop into main
Reviewed-on: #13
2025-02-04 11:36:51 +01:00
niat8586 f6de1c74cb Merge pull request 'Simple file content validation' (#12) from simple-client-validation into develop
Reviewed-on: #12
Reviewed-by: Andreas Svanberg <andreass@dsv.su.se>
2025-02-04 11:32:32 +01:00
niat8586 1d38c59643 Changed arrow function so that the parameter is clearly shown inside a parentheses.
Changed the alert text a bit to make it more clear that they need to select an
audio or video file to upload.
2025-02-04 11:28:19 +01:00
niat8586 efb0f72a88 Changed validation to work on mime type instead.
It now only accepts audio/* and video/* mime types.
2025-02-04 11:10:51 +01:00
niat8586 a37f4bb60b Added .mkv to accepted and allowedExtensions 2025-02-04 10:22:53 +01:00
niat8586 652f6ec22a Removed unused const in validateFile function 2025-02-04 10:04:15 +01:00
niat8586 448c1e9d6b Simple file content validation
Instead of enforcing we are "warning" that the outcome for the selected file may not work as expected
2025-02-04 10:03:09 +01:00
niat8586 b948beaa2b Simple file content validation
Added a simple file content validation to what files can be uploaded.
This should at least help users select the correct file type.

There is no server side validation and that is something we actually will need to implement
at some point.
2025-02-04 09:44:48 +01:00
niat8586 431809b30c Merge pull request 'Latest from develop' (#10) from develop into main
Reviewed-on: #10
2025-02-04 08:04:23 +01:00
niat8586 8430f36f50 Merge pull request 'Ensure clean up of uploaded file if job fails.' (#9) from failed-job-cleanup into develop
Reviewed-on: #9
2025-02-04 06:43:13 +01:00
niat8586 cced346d3b Ensured clean up of uploaded file if job fails.
Previously if a job failed and it's status was set to `JobStatus.FAILED` the uploaded
file was never removed. Which was the intended design. This was an omission.

Now if the job is set to FAILED, the uploaded file will be removed correctly.
This is to ensure that uploaded files do not persist in perpetuity on the file system.

FileMetadata will still be available in the DB (B.N. not the actual file).
2025-02-04 06:39:07 +01:00