Skip to content
This repository was archived by the owner on Feb 8, 2024. It is now read-only.

Update sessionPath value to new endpoint#1486

Merged
avatus merged 4 commits intomasterfrom
michaelmyers/fix/depreacted_session_route
Jan 5, 2023
Merged

Update sessionPath value to new endpoint#1486
avatus merged 4 commits intomasterfrom
michaelmyers/fix/depreacted_session_route

Conversation

@avatus
Copy link
Copy Markdown
Contributor

@avatus avatus commented Jan 4, 2023

When gravitational/teleport#19593 went in, it removed the deprecated(?) route to webapi/sessions in favor of webapi/sessions/web but the frontend was never updated since v5 to change this route. It looks like we were always calling to the same old route instead of the updated one. When the old route was removed, you can no longer login on the web ui.

This change allows the login with the web ui again. I've checked around to find other instances and so far haven't found any but I may have missed something. Some sets of eyes and any historical data around this route would be great!

Teleport buddy: gravitational/teleport#19892

@avatus avatus changed the title Fix sessionPath Update sessionPath value to new endpoint Jan 4, 2023
Copy link
Copy Markdown
Contributor

@kimlisa kimlisa left a comment

Choose a reason for hiding this comment

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

similar name change as backend

Comment thread packages/teleport/src/config.ts Outdated

scp: '/v1/webapi/sites/:clusterId/nodes/:serverId/:login/scp?location=:location&filename=:filename',
renewTokenPath: '/v1/webapi/sessions/renew',
renewTokenPath: '/v1/webapi/sessions/web/renew',
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
renewTokenPath: '/v1/webapi/sessions/web/renew',
webRenewTokenPath: '/v1/webapi/sessions/web/renew',

Comment thread packages/teleport/src/config.ts Outdated
renewTokenPath: '/v1/webapi/sessions/web/renew',
resetPasswordTokenPath: '/v1/webapi/users/password/token',
sessionPath: '/v1/webapi/sessions',
sessionPath: '/v1/webapi/sessions/web',
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
sessionPath: '/v1/webapi/sessions/web',
webSessionPath: '/v1/webapi/sessions/web',

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants