cleanup unused code
This commit is contained in:
parent
7139a555fd
commit
bb266aac4b
4 changed files with 0 additions and 183 deletions
|
@ -36,18 +36,6 @@ type IntrospectionResponse struct {
|
|||
Claims map[string]any `json:"-"`
|
||||
}
|
||||
|
||||
// GetUserInfo copies all user related fields into a new UserInfo.
|
||||
func (i *IntrospectionResponse) GetUserInfo() *UserInfo {
|
||||
return &UserInfo{
|
||||
Address: gu.PtrCopy(i.Address),
|
||||
Subject: i.Subject,
|
||||
UserInfoProfile: i.UserInfoProfile,
|
||||
UserInfoEmail: i.UserInfoEmail,
|
||||
UserInfoPhone: i.UserInfoPhone,
|
||||
Claims: gu.MapCopy(i.Claims),
|
||||
}
|
||||
}
|
||||
|
||||
// SetUserInfo copies all relevant fields from UserInfo
|
||||
// into the IntroSpectionResponse.
|
||||
func (i *IntrospectionResponse) SetUserInfo(u *UserInfo) {
|
||||
|
|
|
@ -8,11 +8,6 @@ import (
|
|||
"github.com/stretchr/testify/require"
|
||||
)
|
||||
|
||||
func TestIntrospectionResponse_GetUserInfo(t *testing.T) {
|
||||
got := introspectionResponseData.GetUserInfo()
|
||||
assert.Equal(t, userInfoData, got)
|
||||
}
|
||||
|
||||
func TestIntrospectionResponse_SetUserInfo(t *testing.T) {
|
||||
tests := []struct {
|
||||
name string
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue