INNER CODE UNIT · Go

func

pace/bricks · tools/testserver/main.go:43

func (*OauthBackend) IntrospectToken(ctx context.Context, token string) (*oauth2.IntrospectResponse, error) {
	return &oauth2.IntrospectResponse{
		Active:   true,
		ClientID: "some client",
		Scope:    "email profile",
		UserID:   "285ec1fc-2843-4ed8-bfa8-4217880c8348",
	}, nil
}

type TestService struct{}

func (*TestService) GetTest(ctx context.Context, w simple.GetTestResponseWriter, r *simple.GetTestRequest) error {
	log.Debug("Request in flight, this will wait 5 min....")
	for t := 0; t < 360; t++ {
		select {
		case <-ctx.Done():
			return ctx.Err()
		default:

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…