forked from fedora-copr/copr
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
10 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -142,7 +142,16 @@ def login(): | |
|
||
# TODO Ask for SSH public key. Anybody knows where is the list of | ||
# available keys that we can ask for? | ||
# import ipdb; ipdb.set_trace() | ||
# | ||
# According to the documentation, we can ask only for a predefined set | ||
# of values and SSH keys are not between them. | ||
# https://pythonhosted.org/Flask-OpenID/#flask_openid.OpenID.try_login | ||
# | ||
# We might need to login using Kerberos and download | ||
# https://fasjson.fedoraproject.org/v1/users/frostyx/ | ||
# The kerberos usage on servers is quite simple, FrostyX uses the | ||
# following command for fedora-sponsors: | ||
# kinit -kt /home/fedora/kt [email protected] | ||
|
||
return oid.try_login(app.config["OPENID_PROVIDER_URL"], | ||
ask_for=["email", "timezone"], | ||
|