Authentication¶
-
class
Authentication
¶ An “abstract” parent class. Represents a means of authenticating oneself to Gogs
-
class
Token
¶ Bases:
gogs_client.auth.Authentication
An immutable representation of a Gogs authentication token
-
__init__
(token, name=None)¶ Parameters: token (str) – contents of Gogs authentication token
-
name
¶ The name of the token
Return type: str
-
token
¶ The contents of the Gogs authentication token
Return type: str
-
-
class
UsernamePassword
¶ Bases:
gogs_client.auth.Authentication
An immutable representation of a Gogs username/password combination
-
__init__
(username, password)¶ Parameters: - username (str) – Username for Gogs account
- password (str) – Password for Gogs account
-
username
¶ Username for Gogs account
Return type: str
-
password
¶ Password for Gogs account :rtype: str
-