request.go 556 B

12345678910111213141516171819202122
  1. package indieauth
  2. import (
  3. "net/url"
  4. "time"
  5. )
  6. // Request represents a single in-flight IndieAuth request.
  7. type Request struct {
  8. Timestamp time.Time
  9. Endpoint *url.URL
  10. Redirect *url.URL // Outbound redirect URL to continue auth flow
  11. Callback *url.URL // Inbound URL to get auth flow results
  12. Me *url.URL
  13. UserID string
  14. DisplayName string
  15. CurrentAccessToken string
  16. ClientID string
  17. CodeVerifier string
  18. CodeChallenge string
  19. State string
  20. }