codecov / engineering-team

This is a general repo to use with GH Projects
1 stars 1 forks source link

[OKTA] Add Okta Sign-in property to User object #1987

Closed michelletran-codecov closed 1 month ago

michelletran-codecov commented 2 months ago

We need a way to get the authentication status for a user when they try to access a particular organization. This can be a property on the User object (i.e. given an account/organization, boolean on whether they're signed in... update this property on sign in success).

michelletran-codecov commented 1 month ago

We will likely want to add a property: okta_authenticated_accounts and a method is_okta_authenticated_for_org(organization) that returns a boolean based on whether the user is okta authenticated. Maybe we should also add another function to "sign-in" for an account.

michelletran-codecov commented 1 month ago

We're going to be using the session to store the value now, so closing this.