// Code generated by MockGen. DO NOT EDIT.
//
// Generated by this command:
//
//

// Package auth is a generated GoMock package.
package auth

import (
	http "net/http"
	reflect "reflect"

	gomock "go.uber.org/mock/gomock"
)

// MockAuthorizer is a mock of Authorizer interface.
type MockAuthorizer struct {
	ctrl     *gomock.Controller
	recorder *MockAuthorizerMockRecorder
	isgomock struct{}
}

// MockAuthorizerMockRecorder is the mock recorder for MockAuthorizer.
type MockAuthorizerMockRecorder struct {
	mock *MockAuthorizer
}

// NewMockAuthorizer creates a new mock instance.
func NewMockAuthorizer(ctrl *gomock.Controller) *MockAuthorizer {
	mock := &MockAuthorizer{ctrl: ctrl}
	mock.recorder = &MockAuthorizerMockRecorder{mock}
	return mock
}

// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockAuthorizer) EXPECT() *MockAuthorizerMockRecorder {
	return m.recorder
}

// IsAdmin mocks base method.
func (m *MockAuthorizer) IsAdmin(userSvcPublicKey, token string) (bool, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "IsAdmin", userSvcPublicKey, token)
	ret0, _ := ret[0].(bool)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

// IsAdmin indicates an expected call of IsAdmin.
func (mr *MockAuthorizerMockRecorder) IsAdmin(userSvcPublicKey, token any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsAdmin", reflect.TypeOf((*MockAuthorizer)(nil).IsAdmin), userSvcPublicKey, token)
}

// IsAdminFromRequest mocks base method.
func (m *MockAuthorizer) IsAdminFromRequest(userSvcPublicKey string, r *http.Request) (bool, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "IsAdminFromRequest", userSvcPublicKey, r)
	ret0, _ := ret[0].(bool)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

// IsAdminFromRequest indicates an expected call of IsAdminFromRequest.
func (mr *MockAuthorizerMockRecorder) IsAdminFromRequest(userSvcPublicKey, r any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsAdminFromRequest", reflect.TypeOf((*MockAuthorizer)(nil).IsAdminFromRequest), userSvcPublicKey, r)
}

// IsAdminToken mocks base method.
func (m *MockAuthorizer) IsAdminToken(arg0 *Claims) bool {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "IsAdminToken", arg0)
	ret0, _ := ret[0].(bool)
	return ret0
}

// IsAdminToken indicates an expected call of IsAdminToken.
func (mr *MockAuthorizerMockRecorder) IsAdminToken(arg0 any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsAdminToken", reflect.TypeOf((*MockAuthorizer)(nil).IsAdminToken), arg0)
}

// Organizations mocks base method.
func (m *MockAuthorizer) Organizations(userSvcPublicKey, token string) (map[string][]string, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "Organizations", userSvcPublicKey, token)
	ret0, _ := ret[0].(map[string][]string)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

// Organizations indicates an expected call of Organizations.
func (mr *MockAuthorizerMockRecorder) Organizations(userSvcPublicKey, token any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Organizations", reflect.TypeOf((*MockAuthorizer)(nil).Organizations), userSvcPublicKey, token)
}

// OrganizationsFromRequest mocks base method.
func (m *MockAuthorizer) OrganizationsFromRequest(userSvcPublicKey string, r *http.Request) (map[string][]string, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "OrganizationsFromRequest", userSvcPublicKey, r)
	ret0, _ := ret[0].(map[string][]string)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

// OrganizationsFromRequest indicates an expected call of OrganizationsFromRequest.
func (mr *MockAuthorizerMockRecorder) OrganizationsFromRequest(userSvcPublicKey, r any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "OrganizationsFromRequest", reflect.TypeOf((*MockAuthorizer)(nil).OrganizationsFromRequest), userSvcPublicKey, r)
}

// ParseJWT mocks base method.
func (m *MockAuthorizer) ParseJWT(userSvcPublicKey, token string) (*Claims, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "ParseJWT", userSvcPublicKey, token)
	ret0, _ := ret[0].(*Claims)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

// ParseJWT indicates an expected call of ParseJWT.
func (mr *MockAuthorizerMockRecorder) ParseJWT(userSvcPublicKey, token any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ParseJWT", reflect.TypeOf((*MockAuthorizer)(nil).ParseJWT), userSvcPublicKey, token)
}

// ParseJWTFromRequest mocks base method.
func (m *MockAuthorizer) ParseJWTFromRequest(userSvcPublicKey string, r *http.Request) (*Claims, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "ParseJWTFromRequest", userSvcPublicKey, r)
	ret0, _ := ret[0].(*Claims)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

// ParseJWTFromRequest indicates an expected call of ParseJWTFromRequest.
func (mr *MockAuthorizerMockRecorder) ParseJWTFromRequest(userSvcPublicKey, r any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ParseJWTFromRequest", reflect.TypeOf((*MockAuthorizer)(nil).ParseJWTFromRequest), userSvcPublicKey, r)
}

// ParseJWTUnverified mocks base method.
func (m *MockAuthorizer) ParseJWTUnverified(token string) (*Claims, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "ParseJWTUnverified", token)
	ret0, _ := ret[0].(*Claims)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

// ParseJWTUnverified indicates an expected call of ParseJWTUnverified.
func (mr *MockAuthorizerMockRecorder) ParseJWTUnverified(token any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ParseJWTUnverified", reflect.TypeOf((*MockAuthorizer)(nil).ParseJWTUnverified), token)
}

// TokenFromRequest mocks base method.
func (m *MockAuthorizer) TokenFromRequest(r *http.Request) (string, bool) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "TokenFromRequest", r)
	ret0, _ := ret[0].(string)
	ret1, _ := ret[1].(bool)
	return ret0, ret1
}

// TokenFromRequest indicates an expected call of TokenFromRequest.
func (mr *MockAuthorizerMockRecorder) TokenFromRequest(r any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TokenFromRequest", reflect.TypeOf((*MockAuthorizer)(nil).TokenFromRequest), r)
}
