(ctx context.Context)
| 131 | var errNoISConn = errors.DefineUnavailable("no_identity_server_conn", "no connection to Identity Server") |
| 132 | |
| 133 | func (f accessFetcher) AuthInfo(ctx context.Context) (*ttnpb.AuthInfoResponse, error) { |
| 134 | cc := f.getConn(ctx) |
| 135 | if cc == nil { |
| 136 | return nil, errNoISConn.New() |
| 137 | } |
| 138 | callOpt, err := rpcmetadata.WithForwardedAuth(ctx, f.allowInsecure) |
| 139 | if err != nil { |
| 140 | return nil, err |
| 141 | } |
| 142 | ctx = rpcmetadata.WithForwardedRequestID(ctx) |
| 143 | authInfo, err := ttnpb.NewEntityAccessClient(cc).AuthInfo(ctx, ttnpb.Empty, callOpt) |
| 144 | registerAuthInfoFetch(ctx, authInfo, err) |
| 145 | if err != nil { |
| 146 | return nil, err |
| 147 | } |
| 148 | return authInfo, nil |
| 149 | } |
| 150 | |
| 151 | func (f accessFetcher) ApplicationRights(ctx context.Context, appID *ttnpb.ApplicationIdentifiers) (*ttnpb.Rights, error) { |
| 152 | cc := f.getConn(ctx) |
nothing calls this directly
no test coverage detected