MCPcopy Create free account
hub / github.com/TheThingsNetwork/lorawan-stack / GetClient

Method GetClient

pkg/oauth/storage.go:75–85  ·  view source on GitHub ↗
(id string)

Source from the content-addressed store, hash-verified

73func (s *storage) Close() {}
74
75func (s *storage) GetClient(id string) (osin.Client, error) {
76 var cli *ttnpb.Client
77 err := s.store.Transact(s.ctx, func(ctx context.Context, st oauth_store.Interface) (err error) {
78 cli, err = st.GetClient(ctx, &ttnpb.ClientIdentifiers{ClientId: id}, nil)
79 return err
80 })
81 if err != nil {
82 return nil, err
83 }
84 return osinClient{cli}, nil
85}
86
87func (s *storage) SaveAuthorize(data *osin.AuthorizeData) error {
88 userSessionIDs := data.UserData.(userData).UserSessionIdentifiers

Callers

nothing calls this directly

Calls 2

TransactMethod · 0.65
GetClientMethod · 0.65

Tested by

no test coverage detected