I am very new to keycloak which is open source that provides authentication to our app.
I have my simple php app and I need to integrate the Keycloak SSO feature with my php app.
I did some research on google that keycloak does not provide any adapter to integrate with php app.
But I found an adapter on github Aatccama/keycloak-adapter-php.
This is repo link : Keycloak php adapter
But I did not understand how to use it.
Can anyone guide me?
You can use any OpenId connect library you want to use Keycloak with PHP. Do a Google search on openid connect php and you will find a multitude of libraries and tutorials.
On your second question I suggest to delve into the Keycloak documentation itself before you put any auth solution online.
A basic knowledge of DevOps is required so I suggest you also look into that topic for deploying and managing a server as Keycloak can be deployed in many ways depending on your own preferences.
You have a example to guide more with sso-keycloak-php repo.
Related
What is the best way to get an OpenID Connect client flow going in the PHP Laravel framework? I have looked at socialite but that does not support OpenID Connect.
I ended up doing the flow myself, the lib I used in the end was https://github.com/jumbojett/OpenID-Connect-PHP - was a nice and simple to get up and running
How can I configure authentication and authorisation to my Symfony 3 app by Google Play Market Account? I tried to use FOSOAuthServerBundle for these purposes. The documentation tells to create a client using ClientManager in this way:
$clientManager = $this->getContainer()->get('fos_oauth_server.client_manager.default');
$client = $clientManager->createClient();
$client->setRedirectUris(array('http://www.example.com'));
$client->setAllowedGrantTypes(array('token', 'authorization_code'));
$clientManager->updateClient($client);
But no words, about where to put this code. But I am already have credentials which I got from Google Console. Is it possible to use them in order to login with Google Play Market account? How to bind them with custom authentication proWhere should I use these credintials? Are there any tutorials about this process in scope of Symfony 3?
The FOSOAuthServerBundle is a server. What you need is a client.
You should try to use HWIOAuthBundle instead or thephpleague/oauth2-client. If none of these libraries fit on your needs, you may find other implementations on Packagist.
I'm trying to implement Oauth2 server library into my fuelphp api. I've been following this tutorial and this one.
I understood and was able to complete the 2nd tutorial, but that doesn't deal with integrating OAuth into Fuelphp.
What I'm wondering, is how to integrate OAuth2 into my api, I just want to replicated a login? Has anyone any other tutorials on how to do this?
Where in my fuelphp directories do I put the Server/ token/ authorization code?
Thanks very much
FuelPHP uses OPauth under the hood and it's use is documented in the official Fuel docs
The server tokens, authorization codes, etc are stored in the opauth.php config file.
I am trying to connect to the Intuit Partner Platform to use the new AggCat API but I am struggling to get the Oauth Signature and SAML assertion setup to authenticate and use the API. I have looked at the PHP DevKit for QuickBooks as an example but I think that is a different authentication process anyway. Are there any examples of how to use PHP to authenticate and use the Intuit AggCat API?
Currently the only samples are for .Net, Java and Ruby.
https://ipp.developer.intuit.com/index.php?title=0010_Intuit_Partner_Platform/0020_Aggregation_%26_Categorization_Apps/0010_GettingStarted/0027_Call_the_Agg_%26_Cat_APIs
William
There is a PHP sample available on github, but I still have not been able to figure out how to get the SimpleSAMLPHP setup working. Here is a link to the sample on github: phpaggcat.
If anyone has more luck with the github sample using SimpleSAMLPHP and can generate a more complete answer, I would appreciate any tips on making it work.
Edit 08/04/2013
I looked at this again recently and got it working. See my answer here.
I want oAuth verification process for a mobile application.For that i need to setup an oAuth server which listens to the requests and grant the access tokens.How do i set this up?I didnt found any relevant help on net.Please let me know.Also it will be good if it could be done using CakePHP
Regards
Himanshu Sharma
You would need an OAuth library for PHP that implements an OAuth service provider.
There are PECL and PEAR OAuth libraries, but my personal testimony is oauth-php as its simpler. I implemented both a server and client with it.
I cant comment on writing a service provider in Cake.
Updates based on OP's comments
Copy that directory to your PHP application to "install" it. You would need only CURL support from your host. There are no other prerequisites from the part of your host.
I did these steps to write an OAuth provider with oauth-php, do try these, google it and ask new questions when you get stuck.
read illustrated guides on how OAuth works
Studied relevant chapters from http://oauth.net/core/1.0a/ (try this order: 3,4, appendix,6 and 7 to start with)
read the example files included with the library, and see the how-tos in site's pages
hack those files and build it up your application