We are trying to configure keycloak with the REST API (e.g. adding users, roles etc). We would like to use the REST API but it seems only Java and Javascript is officially supported which I find strange for a REST API. Isn't it possible to use say a Python REST client to access Keycloak ?
Keycloak provides a RESTful API, which pretty much means that you can use it with any programming language you want, not just Java or JavaScript.
And you are correct, the official Keycloak admin is provided in Java. But nothing can stop you from looking at the docs and writing yours.
There are a few open source Python Keycloak clients available:
https://github.com/Peter-Slump/python-keycloak-client
https://bitbucket.org/agriness/python-keycloak
Related
The HTTP REST API documentation on the ArangoDB website looks incomplete. I need the full reference documentation so I can implement calls to ArangoDB's HTTP REST API from libcurl for C++.
ArangoDB has Swagger UI, go to Support menu in Admin, then select Rest API tab
You can also download swagger.json and generate API clients and server stubs via swagger-codegen (for C++
is supported cpprest, Qt5, Tizen)
Kubernetes OpenAPI specification is hosted here.
https://github.com/kubernetes/kubernetes/tree/master/api/openapi-spec
Additionally, various client APIs for the Kubernetes is provided here:
https://kubernetes.io/docs/reference/using-api/client-libraries/
Using the OpenAPI specification, I am able to generate the server code, which provides the REST services. However, the applications using these K8s client APIs (written in either language - Go, Java, etc.) do not use these REST API directly.
My objective is to mock the K8s server to use in the test automation and build a controlled environment to create various test scenarios.
Is there any ready-to-use Kubernetes mock available? If not, how we can interface the client APIs with the above OpenAPI generated REST server? This way, the applications shall continue to use the client APIs but internally, they will be communicating with the mocked K8s server and not the real one.
Please help with the options.
.
Not really a direct answer to your question, but most solutions i have seen implemented are not trying to mock the k8s API but are really using it through either k3s (from rancher labs) or KinD project (official way)
You then connect to it like a normal kubernetes cluster
I have a test Hyperledger Fabric running in the IBM Cloud, with the IBM Blockchain Application Service. I also have a kubernetes cluster running the Hyperledger Composer REST Server. Everything works great, but how do I extend the REST api with some custom api's?
The documentation mentions being able to use the swagger definition (yaml file) with the IBM API Connect or Strongloop product...but how do I do that, as I don't see any way to export the swagger definition?
I don't have a tutorial, but as I see it you would have to do three tasks minimally:
write your REST APIs (to do what you want to do) - perhaps these
resources on REST APIs will help ? -> Loopback ->
https://developer.ibm.com/code/patterns/create-rest-apis-using-loopback/
and in architectural in general
->https://www.ibm.com/developerworks/library/ws-restful/ and
build the routes for your custom APIs
customise your swagger
definitions to document your REST APIs - this may help you ->
https://www.ibm.com/developerworks/library/wa-use-swagger-to-document-and-define-restful-apis/index.html
and Swagger itself -> http://swagger.io/
If you write custom api and call it as 3rd party api which is mentioned in IBM already it will help you to response but it has very limted scope. I belive you should use swagger to understand its end point are properly configured
I developed a Rest web service with Play! Framework. I aim to secure access to this WS. I'm discovering OAuth2 and it seems to be a good solution in my case. However, instead of using an external OAuth2 provider, I prefer to manage this part myself. So, I installed the last snapshot of OpenAM (12.0.0), which can do this. I have an instance of Active Directory on which the authentication should be based.
I have access to the documentation but I don't know how proceed. I would like to have some tracks.
Thanks for your help.
I'm looking to build a RESTful API in node.js and want to authenticate users with an API key and API secret musch like the service in Amazon Web Services (AWS).
The question is where to start, googling has lead me to a lot of irrelevant sites and I wondered if anyone had some good site suggestions of sample or skeleton code?
Thanks Ric
Here is an oAuth2 provider module. oAuth is quickly becoming the standard for API's.
https://github.com/AF83/oauth2_server_node