2021-07-21 23:04:00 +00:00
|
|
|
package auth
|
|
|
|
|
|
|
|
import (
|
|
|
|
"context"
|
|
|
|
|
2022-01-04 17:31:33 +00:00
|
|
|
"gitlab.com/toby3d/indieauth/internal/domain"
|
2021-07-21 23:04:00 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
type UseCase interface {
|
2022-01-04 17:31:33 +00:00
|
|
|
Discovery(ctx context.Context, clientId string) (*domain.Client, error)
|
|
|
|
Approve(ctx context.Context, login *domain.Login) (string, error)
|
|
|
|
Exchange(ctx context.Context, req *domain.ExchangeRequest) (string, error)
|
2021-07-21 23:04:00 +00:00
|
|
|
}
|