feat(auth): Add OAuth2 authentication
This commit is contained in:
12
secnex/kit/auth/interactive.py
Normal file
12
secnex/kit/auth/interactive.py
Normal file
@@ -0,0 +1,12 @@
|
||||
import webbrowser as browser
|
||||
|
||||
import secrets
|
||||
import requests
|
||||
|
||||
|
||||
from rich.console import Console
|
||||
|
||||
class Interactive:
|
||||
def __init__(self, base_url: str = "http://localhost:3000", redirect_url: str = "http://localhost:8001") -> None:
|
||||
self.base_url = base_url
|
||||
self.redirect_url = redirect_url
|
||||
Reference in New Issue
Block a user