markbates / markbates/goth

Group Retrieval For Google Sessions

Open
#502 0 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Go
Stars
6.6k
Forks
631
PR merge metrics
No merged PRs in 30d

Description

Google [does not provide](https://issuetracker.google.com/issues/133774835) access to a groups-style claim via JWT or userinfo regardless of scopes. However, provided the necessary scope [https://www.googleapis.com/auth/admin.directory.group.readonly scope](https://developers.google.com/identity/protocols/oauth2/scopes#admin-directory) is requested, the access token can be used to retrieve them via [Google's API](https://developers.google.com/admin-sdk/directory/reference/rest/v1/groups/list). Would this functionality be appropriate to include?

Thanks so much for Goth! :blue_heart:

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing Goth's Google provider and session handling, then read the linked Google Admin SDK groups.list endpoint and the admin.directory.group.readonly scope. Determine how retrieved groups should be exposed for Google sessions; done means the requested group data is available without disrupting existing authentication behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
api, authentication
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.