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

Panopto OAuth2 integration #48

Open
wants to merge 12 commits into
base: 9.x
Choose a base branch
from

Conversation

washyking
Copy link

Description

Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.

Fixes # (issue)

Type of change

Please delete options that are not relevant.

  • New feature (non-breaking change which adds functionality)

How Has This Been Tested?

  1. Pull down the PR
  2. Run bundle install on the branch
  3. Follow instructions from here about creating an Api Client
  4. Open a terminal and paste this post request replacing YOUR_CLIENT_ID and YOUR_CLIENT_SECRET
POST "http://localhost:3000/get_access_token" \ -H "Content-Type: application/json" \ -d '{ "server": "deakin.au.panopto.com", "client_id": "YOUR_CLIENT_ID", "client_secret": "YOUR_CLIENT_SECRET" }'
  1. Open link that appears
Screenshot 2024-12-11 at 7 58 40 pm 6. The access token appears in the api terminal.(Expires every time its regenerated or every hour thats why I showed it) Screenshot 2024-12-11 at 8 03 47 pm
  • Tested using curl
  • Tested using postman

Checklist:

  • My code follows the style guidelines of this project

  • I have performed a self-review of my own code

  • I have commented my code, particularly in hard-to-understand areas

  • My changes generate no new warnings

  • I have added tests that prove my fix is effective or that my feature works

  • I have created or extended unit tests to address my new additions

  • New and existing unit tests pass locally with my changes

  • Any dependent changes have been merged and published in downstream modules

If you have any questions, please contact @macite or @jakerenzella.

@washyking washyking changed the title Panopto OAuth2 intergration Panopto OAuth2 integration Dec 11, 2024
@Shounaks
Copy link

Hi @washyking , I have verified your code locally and it is working as expected. This feature is really good addition to OnTrack as a whole.

Approving this PR.

Copy link

@s223552468 s223552468 left a comment

Choose a reason for hiding this comment

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

Hi @washyking i accessed the code locally and as stated its working properly by creating a API client with panopto and integrating with Ontrack. Great work Keep it up! Panopto Video Integration with Ontrack will become a great help for Future Students!

Copy link

@aNebula aNebula left a comment

Choose a reason for hiding this comment

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

@washyking Why was the Gemfile.lock and db/schema.rb deleted? I think this needs to be fixed, otherwise it'll break the app.

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.

4 participants