-
Notifications
You must be signed in to change notification settings - Fork 96
OIDC authentication #118
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
base: main
Are you sure you want to change the base?
OIDC authentication #118
Conversation
nicklaw5
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need some documentation and some mock tests if it's not too much trouble.
go.mod
Outdated
| github.com/coreos/go-oidc v2.2.1+incompatible // indirect | ||
| github.com/coreos/go-oidc/v3 v3.0.0 // indirect | ||
| github.com/pquerna/cachecontrol v0.1.0 // indirect | ||
| golang.org/x/oauth2 v0.0.0-20210819190943-2bc19b11175f // indirect |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This doesn't look right. Can you please run a go mod tidy to fix this.
authentication.go
Outdated
| return | ||
| } | ||
|
|
||
| func (c *Client) UserInfoFromAccessToken( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| func (c *Client) UserInfoFromAccessToken( | |
| func (c *Client) UserInfoFromOIDCAccessToken( |
Pull Request Test Coverage Report for Build 1186133813
💛 - Coveralls |
- update module name
- JWT signing - extension configuration segments endpoints - extension secrets endpoints - UPDATE extension docs
The Twitch docs are not really clear on some parts of the requests getExtensionConfiguration: - broadcasterID is an optional query parameter setExtensionConfiguration: - broadcasterId is an optional body parameter - validate the segment type if broadcasterID is provided MISC: - update 'GetExtensionSecret' -> 'GetExtensionSecrets'
The response contains a json field 'total' which we're not currently unmarshalling to create event subs
- Extension Live Channels - Unit test for Extension Live Channels - Supported Endpoints
https://dev.twitch.tv/docs/api/reference#send-chat-announcement - add api parameters, response, func to chat.go - add unit tests
https://dev.twitch.tv/docs/api/reference#send-chat-announcement - add api parameters, response, func to chat.go - add unit tests
- add prefix of '/' to the charity campaigns url
- Twitch user claims struct - IDToken struct - OIDC auth struct - Request user OIDC access token - UserInfo endpoint from access token
- oidc provider as interface - refactor auth url to default url - fetch auth url and oidc provider from opts of client
Introduce Twitch OIDC authentication to Helix.