fedora-infra / fas

Fedora Account System
https://admin.fedoraproject.org/accounts
GNU General Public License v2.0
40 stars 50 forks source link

[FAS3] Generating access token throws a 401 #183

Closed skrzepto closed 7 years ago

skrzepto commented 8 years ago

Note: this happens on local and fas3-dev.fedorainfracloud.org

Summary

When generating a access token with CAN_READ_PUBLIC_INFO it throws 401 unathorized

Steps to reproduce

  1. Login to an account
  2. Go To profile by clicking on avatar
  3. Under Security click on Access Token
  4. Click on Add token
  5. Enter anything for description and click on CAN_READ_PUBLIC_INFO
  6. Click Generate and it redirects you to a 401 page

    Expected Results

To successfully add the token and redirect to the access token page /people/profile/<user>/accesstoken

Error Log

2016-07-19 10:30:19,122 INFO  [waitress:12517][sqlalchemy.engine.base.Engine:base][_execute_context:1100] (1996,)
2016-07-19 10:30:19,125 DEBUG [waitress:12517][fas:authentication][_log:51] pyramid.authentication.AuthTktAuthenticationPolicy.authenticated_userid: groupfinder callback returned []; returning u'simon'
2016-07-19 10:30:19,125 INFO  [waitress:12517][sqlalchemy.engine.base.Engine:base][_rollback_impl:666] ROLLBACK
pypingou commented 8 years ago

I'm not able to reproduce this one, so I'll assume that the commit referred to above fixed it.

If that's not the case, let's re-open this ticket :)

skrzepto commented 7 years ago

This is working for me now on latest