Compare commits
2 Commits
52166f6602
...
150963c690
Author | SHA1 | Date |
---|---|---|
Maxim Lebedev | 150963c690 | |
Maxim Lebedev | 41bbed37c2 |
4
Makefile
4
Makefile
|
@ -13,8 +13,8 @@ EXECUTABLE ?= indieauth
|
||||||
|
|
||||||
.PHONY: all clean check help
|
.PHONY: all clean check help
|
||||||
|
|
||||||
all:
|
all: main.go
|
||||||
$(GO) build -v $(GOFLAGS) -o $(EXECUTABLE) $<
|
$(GO) build -v $(GOFLAGS) -o $(EXECUTABLE)
|
||||||
|
|
||||||
clean: ## Delete all files in the current directory that are normally created by building the program
|
clean: ## Delete all files in the current directory that are normally created by building the program
|
||||||
-rm $(srcdir)/internal/testing/httptest/{cert,key}.pem
|
-rm $(srcdir)/internal/testing/httptest/{cert,key}.pem
|
||||||
|
|
|
@ -19,25 +19,25 @@ import (
|
||||||
|
|
||||||
type (
|
type (
|
||||||
ClientCallbackRequest struct {
|
ClientCallbackRequest struct {
|
||||||
|
Error domain.ErrorCode `form:"error,omitempty"`
|
||||||
Iss *domain.ClientID `form:"iss"`
|
Iss *domain.ClientID `form:"iss"`
|
||||||
Code string `form:"code"`
|
Code string `form:"code"`
|
||||||
Error domain.ErrorCode `form:"error"`
|
ErrorDescription string `form:"error_description,omitempty"`
|
||||||
ErrorDescription string `form:"error_description"`
|
|
||||||
State string `form:"state"`
|
State string `form:"state"`
|
||||||
}
|
}
|
||||||
|
|
||||||
NewRequestHandlerOptions struct {
|
NewRequestHandlerOptions struct {
|
||||||
Client *domain.Client
|
|
||||||
Config *domain.Config
|
|
||||||
Matcher language.Matcher
|
Matcher language.Matcher
|
||||||
Tokens token.UseCase
|
Tokens token.UseCase
|
||||||
|
Client *domain.Client
|
||||||
|
Config *domain.Config
|
||||||
}
|
}
|
||||||
|
|
||||||
RequestHandler struct {
|
RequestHandler struct {
|
||||||
client *domain.Client
|
|
||||||
config *domain.Config
|
|
||||||
matcher language.Matcher
|
matcher language.Matcher
|
||||||
tokens token.UseCase
|
tokens token.UseCase
|
||||||
|
client *domain.Client
|
||||||
|
config *domain.Config
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue