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

feat: add account session token API #290

Merged
merged 1 commit into from
Jun 24, 2024
Merged

Conversation

PDXKimani
Copy link
Contributor

Adds a new global API, used for generating account-scoped session tokens.

@@ -23,3 +24,11 @@ message _Account {
string id = 1;
string account_name = 2;
}

message _GetAccountSessionTokenRequest {
string account_id = 1;
Copy link
Contributor

Choose a reason for hiding this comment

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

The customer id/subject will be in the auth context, right, because it'll be from the auth0 token? Are we planning on using the user id at all? Or not yet?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The Auth0 token establishes the user - the flow is that the console will first call the "GetAccounts" API to get a list of accounts, then pass back the user's selection via this API to generate an auth token scoped to that account.

@PDXKimani PDXKimani merged commit dcd6c3d into main Jun 24, 2024
7 checks passed
@PDXKimani PDXKimani deleted the feat/account-session-token branch June 24, 2024 18:39
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.

2 participants