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

The reauthenticate endpoint is deprecated #174

Open
bfoz opened this issue Apr 1, 2024 · 3 comments
Open

The reauthenticate endpoint is deprecated #174

bfoz opened this issue Apr 1, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@bfoz
Copy link

bfoz commented Apr 1, 2024

I was looking through the changelogs on the new API portal and noticed this little tidbit:

image

Does this affect ibeam?

@bfoz bfoz added the bug Something isn't working label Apr 1, 2024
@Voyz
Copy link
Owner

Voyz commented Apr 1, 2024

I appreciate you reading through their changelog and spotting this 👏👏

I've tried to swap it, but that new endpoint doesn't work for me when using it to reauthenticate: https://localhost:5000/v1/api/iserver/auth/ssodh/init.

Originally with auth strategy B we'd call the reauthenticate when we'd find a running session that had troubles. The strategy was to call logout followed by reauthenticate which frequently helped to re-establish the connection. Now it seems that calling auth/ssodh/init after logout doesn't work - I'm getting either 410 gone or 503.

So I suppose this isn't a 1-1 replacement, but we'd need to figure out a new authentication strategy to use it instead of reauthenticate. I'm leaving reauthenticate as it is for now.


Additionally, how would you interpret this sentence?

After retrieving the access token and subsequent Live Session Token, customers can initialize their brokerage session with the ssodh/init endpoint.

Especially:

[...] customers can initialize their brokerage session [...]

We're supposed to call this endpoint after logging in to initialise our session?

To validate that interpretation I've added a call to this new endpoint after we successfully log in. I've published voyz/ibeam:0.5.2-rc2 Docker image with that modification - feel free to try it out.

@bfoz
Copy link
Author

bfoz commented Apr 26, 2024

The documentation seems to be changing pretty quickly. The Introduction now suggests that they're switching to OAuth 2.0 and that they're planning to have One API to rule them all.

The section Sessions in the Web API describes a two-tier authentication system. A "read-only" tier that seems to be similar to what we're used to, and a "brokerage session" that is established after the first tier. I'm not sure if this is new, or simply newly documented, or I just didn't notice it before.

Apparently all "/iserver" endpoints require a brokerage session, so that might be why you're having trouble reauthenticating.

I'll try the new image. Thanks.

@Voyz
Copy link
Owner

Voyz commented Apr 28, 2024

Hey @bfoz thanks for this update. What you find seems to be consistent with this comment here: #150 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants