Acquire oauth2 auth code using Jersey framework
Hi, I'm brand new as a Panopto API user. I'm attempting to get an access token for a user-based (server) web app. I'm working with these instructions: https://support.panopto.com/s/article/How-to-Get-OAuth2-Access-Tokens-for-Users.
My question is with the initial redirect that my web app does, to send the user to the Panopto log-in page.
This is my URL.
I'm using the Jersey framework (Java servlet-based - yeah, that's what I'm stuck with). From my web app I'm issuing a "Response.temporaryRedirect" to this URL. (Is this the problem?)
What I'm getting back: 2 responses.
Response 1 is a 302 GET to the redirect URL is as described above.
Response 2 is a 200 GET to a URL that looks like this:
(If I paste this sign-in URL into my browser address bar, I get a Panopto error page with this content:
Error processing request
There is an error determining which application you are signing into. Return to the application and try again.
Request Id: cc072f73-3fbd-4fc0-87f9-70b1c0102823)
So, my questions:
(1) Is my assumption right, that a user hitting my web app should be redirected to the Panopto log-in page? (I think yes?)
(2) Is it how I'm issuing the redirect using the Jersey framework that is the cause of the problem?
(3) If yes to question 2, would this explain why I get back "Response 2"?