-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add GitHub authentication with fps-auth-fief (#324)
* Add GitHub authentication with fps-auth-fief * Allow auth callback to be set from config
- Loading branch information
1 parent
c0070bd
commit e15a7e4
Showing
3 changed files
with
105 additions
and
19 deletions.
There are no files selected for viewing
This file contains 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 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 |
---|---|---|
@@ -1,7 +1,11 @@ | ||
from jupyverse_api.auth import AuthConfig | ||
from pydantic import Field | ||
|
||
|
||
class _AuthFiefConfig(AuthConfig): | ||
base_url: str # Base URL of Fief tenant | ||
client_id: str # ID of Fief client | ||
client_secret: str # Secret of Fief client | ||
base_url: str = Field(description="Base URL of Fief tenant") | ||
callback_url: str = Field(description="URL of the callback route", default="") | ||
client_id: str = Field(description="ID of Fief client") | ||
client_secret: str = Field(description="Secret of Fief client") | ||
admin_api_key: str = Field(description="Admin API key", default="") | ||
oauth_provider_id: str = Field(description="OAuth provider ID", default="") |
This file contains 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