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

core: refactor SessionStateApi to SessionApi with sign-in/out #2555

Merged
merged 3 commits into from
Sep 22, 2020

Conversation

Rugvip
Copy link
Member

@Rugvip Rugvip commented Sep 22, 2020

This moves logout from the OAuthApi and OpenIdApi to the SessionStateApi and renames it to SessionApi.

It also renames all mentions of logout in the frontend to signOut, since that's the terminology we've settled on.

While at it I also added a signIn to the SessionApi, which keeps things symmetrical, but also enables the implementation of the settings items to be much more generic.

I experimented with a LogoutApi as well, but putting it all in a SessionApi felt like a reasonable separation of concerns while not making things too granular.

1st commit contains the changes, 2nd one is just generated doc updates.

@Rugvip Rugvip requested a review from a team as a code owner September 22, 2020 09:46
Copy link
Member

@freben freben left a comment

Choose a reason for hiding this comment

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

Yep, that makes a ton of sense, nice.

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.

None yet

2 participants