Skip to content
  • Rémy Coutable's avatar
    Merge branch '18302-use-rails-cookie-in-api' into 'master' · d14c8b16
    Rémy Coutable authored and Rémy Coutable's avatar Rémy Coutable committed
    Allow the Rails cookie to be used for API authentication
    
    Makes the Rails cookie into a valid authentication token for the Grape
    API, and uses it instead of token authentication in frontend code that
    uses the API.
    
    Rendering the private token into client-side javascript is a security
    risk; it may be stolen through XSS or other attacks. In general,
    re-using API code in the frontend is more desirable than implementing
    endless actions that return JSON.
    
    Closes #18302
    
    See merge request !1995
    
    
    
    Signed-off-by: default avatarRémy Coutable <remy@rymai.me>
    d14c8b16
To find the state of this project's repository at the time of any of these versions, check out the tags.