-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create speaker account with SSO as part of the answer to Call for Pro…
…posals (#520) * Make social login redirect to previous page * Add url validate * Add scheme check for url validation * Resolve conversations * Resolve conversations * Resolve conversations
- Loading branch information
Showing
4 changed files
with
102 additions
and
32 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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
from typing import Annotated | ||
|
||
from pydantic import BaseModel, StringConstraints | ||
|
||
|
||
class OAuth2Params(BaseModel): | ||
response_type: Annotated[str, StringConstraints(strip_whitespace=True)] = "code" | ||
client_id: Annotated[str, StringConstraints(strip_whitespace=True)] | ||
redirect_uri: Annotated[str, StringConstraints(strip_whitespace=True)] | ||
scope: Annotated[str, StringConstraints(strip_whitespace=True)] = "profile" | ||
state: Annotated[str, StringConstraints(strip_whitespace=True)] |
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