🏷️ Added Session domain
This commit is contained in:
parent
3965895e01
commit
1d14c7a347
|
@ -0,0 +1,27 @@
|
||||||
|
package domain
|
||||||
|
|
||||||
|
import "testing"
|
||||||
|
|
||||||
|
type Session struct {
|
||||||
|
ClientID *ClientID
|
||||||
|
Me *Me
|
||||||
|
RedirectURI *URL
|
||||||
|
CodeChallengeMethod CodeChallengeMethod
|
||||||
|
Scope Scopes
|
||||||
|
Code string
|
||||||
|
CodeChallenge string
|
||||||
|
}
|
||||||
|
|
||||||
|
func TestSession(tb testing.TB) *Session {
|
||||||
|
tb.Helper()
|
||||||
|
|
||||||
|
return &Session{
|
||||||
|
ClientID: TestClientID(tb),
|
||||||
|
Me: TestMe(tb),
|
||||||
|
RedirectURI: TestURL(tb, "https://example.com/callback"),
|
||||||
|
CodeChallengeMethod: CodeChallengeMethodPLAIN,
|
||||||
|
Scope: Scopes{ScopeProfile, ScopeEmail},
|
||||||
|
Code: "abcdefg",
|
||||||
|
CodeChallenge: "hackme",
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue