Bug 1044165

Summary: API: Provide login and token information in the same form as entered to ~/.config-copr
Product: [Community] Copr Reporter: Miro Hrončok <mhroncok>
Component: frontendAssignee: Miroslav Suchý <msuchy>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: unspecified   
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: copr-1.20-1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-02-06 08:32:00 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Miro Hrončok 2013-12-17 21:36:54 UTC
Description of problem:

When I want to obtaiin token and login for copr-cli, I would like to go to copr.url/api and copy the entire section of the config file. Then just paste it into the config.

Steps to reproduce:

1. Log in to Copr
2. Visit http://copr.fedoraproject.org/api/

Actual results:

    API login       :   aaaa
    API token       :   bbbb
    Expiration date :   2014-06-15

Expected results:

[copr-cli]
username = your_username_goes_here
login = aaaa
token = bbbb
# expires = 2014-06-15

Additional info:

Not sure if # works as comment in copr config.

Comment 1 Miroslav Suchý 2013-12-18 08:34:12 UTC
Done in commit 230f923.

Comment 2 Miro Hrončok 2014-01-09 12:40:05 UTC
fixed, thanks :)