feat: social login in a cross domain setting

This commit is contained in:
lfleischmann
2023-04-11 16:41:12 +02:00
committed by GitHub
parent 0fca4c0b75
commit f02e6c6790
125 changed files with 3427 additions and 560 deletions

View File

@ -33,7 +33,7 @@ func TestUserHandlerAdmin_Delete(t *testing.T) {
c.SetParamNames("id")
c.SetParamValues(userId.String())
p := test.NewPersister(users, nil, nil, nil, nil, nil, nil, nil, nil, nil)
p := test.NewPersister(users, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil)
handler := NewUserHandlerAdmin(p)
if assert.NoError(t, handler.Delete(c)) {
@ -50,7 +50,7 @@ func TestUserHandlerAdmin_Delete_InvalidUserId(t *testing.T) {
c.SetParamNames("id")
c.SetParamValues("invalidId")
p := test.NewPersister(nil, nil, nil, nil, nil, nil, nil, nil, nil, nil)
p := test.NewPersister(nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil)
handler := NewUserHandlerAdmin(p)
err := handler.Delete(c)
@ -70,7 +70,7 @@ func TestUserHandlerAdmin_Delete_UnknownUserId(t *testing.T) {
c.SetParamNames("id")
c.SetParamValues(userId.String())
p := test.NewPersister(nil, nil, nil, nil, nil, nil, nil, nil, nil, nil)
p := test.NewPersister(nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil)
handler := NewUserHandlerAdmin(p)
err := handler.Delete(c)
@ -106,7 +106,7 @@ func TestUserHandlerAdmin_List(t *testing.T) {
rec := httptest.NewRecorder()
c := e.NewContext(req, rec)
p := test.NewPersister(users, nil, nil, nil, nil, nil, nil, nil, nil, nil)
p := test.NewPersister(users, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil)
handler := NewUserHandlerAdmin(p)
if assert.NoError(t, handler.List(c)) {
@ -149,7 +149,7 @@ func TestUserHandlerAdmin_List_Pagination(t *testing.T) {
rec := httptest.NewRecorder()
c := e.NewContext(req, rec)
p := test.NewPersister(users, nil, nil, nil, nil, nil, nil, nil, nil, nil)
p := test.NewPersister(users, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil)
handler := NewUserHandlerAdmin(p)
if assert.NoError(t, handler.List(c)) {
@ -173,7 +173,7 @@ func TestUserHandlerAdmin_List_NoUsers(t *testing.T) {
rec := httptest.NewRecorder()
c := e.NewContext(req, rec)
p := test.NewPersister(nil, nil, nil, nil, nil, nil, nil, nil, nil, nil)
p := test.NewPersister(nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil)
handler := NewUserHandlerAdmin(p)
if assert.NoError(t, handler.List(c)) {
@ -196,7 +196,7 @@ func TestUserHandlerAdmin_List_InvalidPaginationParam(t *testing.T) {
rec := httptest.NewRecorder()
c := e.NewContext(req, rec)
p := test.NewPersister(nil, nil, nil, nil, nil, nil, nil, nil, nil, nil)
p := test.NewPersister(nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil)
handler := NewUserHandlerAdmin(p)
err := handler.List(c)