Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added User Info endpoint #1133

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions Documentation/oidc-connector.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,12 @@ connectors:
# following field.
#
# basicAuthUnsupported: true

# Some clients require the possibility to get further user details provided
# by via the UserInfo endpoint.
#
# See: http://openid.net/specs/openid-connect-core-1_0.html#UserInfo
# userInfo: https://www.googleapis.com/oauth2/v3/userinfo

# Google supports whitelisting allowed domains when using G Suite
# (Google Apps). The following field can be set to a list of domains
Expand Down
220 changes: 218 additions & 2 deletions api/api.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions connector/connector.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,3 +97,8 @@ type RefreshConnector interface {
// changes since the token was last refreshed.
Refresh(ctx context.Context, s Scopes, identity Identity) (Identity, error)
}

// UserInfoConnector represents connectors that support the user info endpoint
type UserInfoConnector interface {
GetUserInfo(connData []byte, user *map[string]interface{}) (err error)
}
Loading