feat: generic Userinfo and Introspect functions (#389)
BREAKING CHANGE: rp.Userinfo and rs.Introspect now require a type parameter.
This commit is contained in:
parent
e43ac6dfdf
commit
d5a9bd6d0e
6 changed files with 136 additions and 18 deletions
|
@ -29,6 +29,11 @@ func (u *UserInfo) GetAddress() *UserInfoAddress {
|
|||
return u.Address
|
||||
}
|
||||
|
||||
// GetSubject implements [rp.SubjectGetter]
|
||||
func (u *UserInfo) GetSubject() string {
|
||||
return u.Subject
|
||||
}
|
||||
|
||||
type uiAlias UserInfo
|
||||
|
||||
func (u *UserInfo) MarshalJSON() ([]byte, error) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue