-
Couldn't load subscription status.
- Fork 70
Implement oidc #628
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
Open
Jeidnx
wants to merge
25
commits into
TeamPiped:master
Choose a base branch
from
Jeidnx:oidc
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Implement oidc #628
Changes from 1 commit
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
604fa65
Implement oidc
375ee58
Better Error handling for oidc config
143711c
Save redirect in state
18d9317
Show warning message before oidc login
f4b9dff
Only show warning when not redirecting to configured frontend
53d9b9d
Merge branch 'master' into oidc
97889f3
Merge remote-tracking branch 'origin/master' into oidc
FireMasterK 847f80c
Simplify config handling.
FireMasterK 946ac45
Add missing newline.
FireMasterK 0eb2351
Format all code.
FireMasterK 9b7246a
Merge branch 'master' into oidc
Jeidnx e7f2187
Implement account deletion and cleanup some code
c1fde37
Refactor oidc logic into UserHandlers
024435f
Add database migration for username length change.
FireMasterK 470efd8
Revert "Add database migration for username length change."
5f6a83a
Add code from the meeting.
FireMasterK 868103c
Merge branch 'master' into oidc
074e4bc
chore: properly implement oidc
580eb7f
Simplify oidc hash generation.
FireMasterK 9520a3c
Simplify error handling code a little.
FireMasterK b0725f8
Remove debug code and format.
FireMasterK 74a6751
Move OidcData to db + some cleanup
f76f8e0
randomize username
e4ba195
add redirect to oidc delete; more cleanup
77cd736
explicitly reject empty hashes
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| package me.kavin.piped.utils.obj; | ||
|
|
||
| import com.nimbusds.oauth2.sdk.auth.Secret; | ||
| import com.nimbusds.oauth2.sdk.id.ClientID; | ||
|
|
||
| import java.net.URI; | ||
| import java.net.URISyntaxException; | ||
|
|
||
| public class OidcProvider { | ||
| public String name; | ||
| public ClientID clientID; | ||
| public Secret clientSecret; | ||
| public URI authUri; | ||
| public URI tokenUri; | ||
| public URI userinfoUri; | ||
|
|
||
| public OidcProvider(String name, String clientID, String clientSecret, String authUri, String tokenUri, String userinfoUri) throws URISyntaxException { | ||
| this.name = name; | ||
| this.clientID = new ClientID(clientID); | ||
| this.clientSecret = new Secret(clientSecret); | ||
| this.authUri = new URI(authUri); | ||
| this.tokenUri = new URI(tokenUri); | ||
| this.userinfoUri = new URI(userinfoUri); | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.