Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

An example or sample on how to integrate it would be very helpful #20

Open
iusshpandeh opened this issue Apr 30, 2021 · 4 comments
Open

Comments

@iusshpandeh
Copy link

Hi,

I'm quite new to Clojure. I found this library recently and I'm having difficulty understanding on how to integrate it with the existing clojure system. I initially tried using similar method on what you have done in sample, but I ran into multiple issues, one after another.

An example on how to integrate the library with the existing system or a sample code would do wonders for beginners like us. I've read documentation multiple times but I am having issues understanding it properly. Perhaps, its a "me" problem. But, any help or guidance would be highly appreciated.

Thank You.

@jgrodziski
Copy link
Owner

Hi, are you more interested in:

  1. a single-page application style frontend with a REST API on the backend
  2. a backend with server-side rendering of the HTML ?

as the two styles are handled quite differently on the backend.

@iusshpandeh
Copy link
Author

Thanks for quick reply.

I'm more interested in the first. My application is a single-page React frontend and backend API written in Clojure.

Thank You.

@Saurabstha
Copy link

Hi, are you more interested in:

  1. a single-page application style frontend with a REST API on the backend
  2. a backend with server-side rendering of the HTML ?

as the two styles are handled quite differently on the backend.

Hi,
I was also not able to use keycloak-clojure in my SPA with rest api backend.
A minimal sample code for integrating the library would be really helpful.

@jgrodziski
Copy link
Owner

I've committed a new ns [keycloak.middleware](https://github.com/jgrodziski/keycloak-clojure/blob/master/src/keycloak/middleware.clj) with three middlewares along with some utility functions for integration with reitit in the sample app sample/ring-backend (see reitit ns). A fully functional sample is being developed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants