Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Chris Bautista
    @chrisbjr
    will look into it
    Jonathan Gravois
    @jongravois
    I am git-stupid so if I want to get pull #42, can I just do a composer update?
    Mark Jayson Fuentes
    @awkwardusername
    @jongravois PR was merged.
    tag was 2.1.1 so composer update would do
    khanna91
    @khanna91
    Hi, I was using ApiGuard in L5 it was working, but not any more. Its not throwing error if i dont pass any key, I have checked the documentation. Couldn't figure out. Any Help?
    Chris Bautista
    @chrisbjr
    hi @khanna91 did you override the __construct() method of your controller?
    Chris Bautista
    @chrisbjr
    @khanna91 if you did override it, make sure to include parent::__construct();
    khanna91
    @khanna91
    @chrisbjr : thanks...it worked
    khanna91
    @khanna91
    Api Guard is working perfectly fine for my get request but its throwing error in post request? anyone can help?
    khanna91
    @khanna91
    Its sorted now, it was my oversight. API guard was working smoothly.
    Tim Joosten
    @Tjoosten
    anyone here
    Ruel Luna
    @ruelluna
    Hi All, I am having an error "Call to a member function withCollection() on null" .
    Mark Jayson Fuentes
    @awkwardusername
    @ruelluna uhm, code?
    Ruel Luna
    @ruelluna
    @awkwardusername this is when I call return $this->response->withCollection($users, new UserTransformer());.. Dug in and it seemed to be that the EllipseSynergie Response Class isn't automcatically called so it throws a on null on withCollection method.. Solved it by using that class, injecting through the constructor and assigning $this->response = $response;
    Giammarco R. Casanova
    @grcasanova
    Hello
    anyone here?
    Mark Jayson Fuentes
    @awkwardusername
    @grcasanova what's up.
    Galironfydar
    @Galironfydar
    Hello could someone please tell me if this package supports 5.1?
    Nevermind, I realised I was pulling down the wrong version
    Ben Hamment
    @Otterpocket
    Everything is working just great until I tried to do a post/put request on an action extending ApiGuardController, the token is set and valid as it works with the "get" request, but I get the following Laravel error with post/put:
    blob
    How can I solve this?
    Ben Hamment
    @Otterpocket
    done it :D
    Marin Petkov
    @mpetkov
    sorry to jump in here, but I was wondering if there is a middleware version of this plugin. I just thought that extending a controller for auth is what we did in laravel 4 but in 5 it got moved to middleware
    npaolita
    @npaolita
    hi , i have a big problem, when i make a post request a get a problem with the tokenMismAtchException but when in remove VerifyCrsfToken in kernel , it is ok but i know that this is not a good idea
    how can i fix this pls?
    lgmjalindahl
    @lgmjalindahl
    On laravel 4.2, I'm getting: Class 'Chrisbjr\ApiGuard\ApiGuardController' not found when I have 'use Chrisbjr\ApiGuard\ApiGuardController;' in my controller.
    @chrisbjr any ideas?
    and the line has been added to the app.php
    lgmjalindahl
    @lgmjalindahl
    Fixed it. Your documentation is incorrect. The line should be: "use Chrisbjr\ApiGuard\Controllers\ApiGuardController;"
    tft92
    @tft92
    Hey guys, has anyone got a hint for me how to automatically generate a api_key when a new user is registered?
    Jeremy Roman
    @Kithros
    ok so i am looking at using this, and I have one question, If I want to use the belongsto on something other than the user, ( lets say like a group). the idea is a group or company or site( what ever nomenclature we decide), can make API calls using the same key, and the users can log into to manage the site/group/company. I assume its as simple as setting up the relations but wanted to make sure.
    Robert Mennell
    @skatcat31
    so is this thing ever going to come to Lumen? I've been looking at the overhead between the two and it looks like a Lumen compatible version of this would be exactly what most API developers would want.
    gnguyo
    @gnguyo
    how do i add a new filter which will require the user object.
    Robert Mennell
    @skatcat31
    in what context? Are you associating your apikeys with users?
    Robert Mennell
    @skatcat31
    @tft92 have you looked at this yet? https://github.com/chrisbjr/api-guard/tree/v0.7#accessing-the-user-instance-and-stateless-authentication It shows how to create an apiKey without using the route which should give you some ideas about how to create on when someone logs in, or gets created.
    @gnguyo if you include the apikey model, you can use $this->apiKey->user to retrieve the related user model
    Robert Mennell
    @skatcat31
    @chrisbjr Love your apiKey class, and I had one quick question about deauthentication. Is there a way I could set an apiKey to something that when it was accessed with this special key, it just returns an error so I don't delete the apiKey entry, but instead just have to generate a new one for them upon login? Or am I over thinking it and I should just set it to a string that I look for specifically to disallow access if the key is such?
    or can I do this with soft deletes?
    Karmendra Suthar
    @karmendra
    @chrisbjr Really useful library. I have been working on it for long now. Definitely there is no option to generate a key and store against a user when a new user is created. But in my Controller I built a little function to do so, and it works like a charm. Thanks.
    Karmendra Suthar
    @karmendra
    Another thing is, to make sure the apikey that is used, is for the user_id it is generated for, user_id is a required post field. I made it work by modifying ApiGuardController's before filter with somthing very similar to keyAuthentication piece of code. The problem is it is in ApiGuardController, I wan it to be in a place where even if I update the api-guard package, my changes are not overwritten. I thought I will create my own ApiGuardController extending Chrisbjr\ApiGuard\Http\ControllersApiGuardController and override the big constructor where most of the code is copy, but as a second thought can I somehow place this in a filter (I am yet to learn about beforeFilter and afterFilter). What should I do extend ApiGuardController or explore Filters? Any help appreciated.
    Kiran
    @devkiran
    01.png
    While installing the api-guard i got the above errors
    Karmendra Suthar
    @karmendra
    you are trying to install api-gaurd v0.1 on laravel 5 or above, I believe, thus the error. if you are using Larvel 5+ in your compoer use version 2.0+ of apigaurd "chrisbjr/api-guard": "~2.0",
    Kiran
    @devkiran
    thank you Karmendra, that worked.
    Kiran
    @devkiran
    Can i customize the error response sent by the api-guard ?
    Stephan Galea
    @fairmutex
    hi all
    Lukas
    @LukvonStrom
    Hey, as asked here before will a lumen version be available ? At the moment I'm building some APIs and it would be great to use the api-guard with lumen
    David D.
    @ddimaria
    Hi, I just upgraded to L5.2 and pulled the latest apiguard from dev-master. I'm getting this error: Class apiguard does not exist. Anyone else getting this?
    Sergei Lemnev
    @enotys
    @ddimaria +1 dev-master NOT worked with L5.2 and "stable" 3.0.3 not worked :(