mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 16:15:49 -06:00
[PR #1666] [MERGED] [Feature] OIDC Authentication #4430
Labels
No labels
In Progress
WIP
WaitingForInfo
bug
doc
duplicate
easy
enhancement
future
help wanted
invalid
lifecycle/stale
need-issue-template
need-usage-help
no plan
proposal
pull-request
question
todo
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/frp#4430
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/fatedier/frp/pull/1666
Author: @GuyLewin
Created: 2/19/2020
Status: ✅ Merged
Merged: 3/1/2020
Merged by: @fatedier
Base:
dev← Head:feature/oidc-auth📝 Commits (10+)
72626acfeat: add multiple authentication methods, token and oidc. token is the current token comparison, and oidc generates oidc token using client-credentials flow. in addition - add ping verification using the same method99c13cdfix(heartbeats): dont consider a heartbeat if verification failede70c229docs: add authentication method to README.mda7fbe82test(auth): add authentication test (currently only for token)e563f1cstyle(auth): rename ProviderConsumer to SetterVerifier since that's the new naming convention for auth10bcd8dchore: update go.sum739cdd2chore: update vendor and go.suma85b52dstyle: check for err not being null, dont strip return5544e5fstyle: export shared logic from SetLogin and SetPing to a common generateAccessToken() method in oidc.go4877c78feat: authenticate NewWorkConn messages, similar to ping📊 Changes
190 files changed (+47570 additions, -61 deletions)
View changed files
📝
README.md(+39 -1)📝
client/control.go(+27 -2)📝
client/service.go(+20 -13)📝
cmd/frpc/sub/root.go(+5 -1)📝
cmd/frps/root.go(+5 -1)📝
go.mod(+4 -0)📝
go.sum(+30 -0)➕
models/auth/auth.go(+151 -0)➕
models/auth/oidc.go(+255 -0)➕
models/auth/token.go(+120 -0)📝
models/config/client_common.go(+5 -9)📝
models/config/server_common.go(+5 -7)📝
models/consts/consts.go(+4 -0)📝
models/msg/msg.go(+7 -1)📝
server/control.go(+16 -2)📝
server/proxy/proxy.go(+1 -0)📝
server/service.go(+21 -8)➕
tests/ci/auth_test.go(+72 -0)➕
vendor/github.com/coreos/go-oidc/.gitignore(+2 -0)➕
vendor/github.com/coreos/go-oidc/.travis.yml(+16 -0)...and 80 more files
📄 Description
Perform OIDC authentication (configurable to be instead of current token authentication) between frpc and frps. Authentication can be performed on login message and ping messages.
This is implemented by a new auth plugin system.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.