MCPcopy Index your code
hub / github.com/diffgram/diffgram / get_user_by_oauth2_id

Method get_user_by_oauth2_id

shared/database/user.py:256–261  ·  view source on GitHub ↗
(session, oidc_id)

Source from the content-addressed store, hash-verified

254
255 @staticmethod
256 def get_user_by_oauth2_id(session, oidc_id):
257 user = session.query(User).filter(
258 User.oidc_id == oidc_id
259 ).first()
260
261 return user
262
263 def serialize_with_permission_only(self, project_string_id):
264 return self.permissions_projects.get(project_string_id, None)

Callers 2

api_oidc_callbackFunction · 0.80
get_user_from_oauth2Function · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected