Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

Sorry, you do not have permission to ask a question, You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please type your username.

Please type your E-Mail.

Please choose an appropriate title for the post.

Please choose the appropriate section so your post can be easily searched.

Please choose suitable Keywords Ex: post, video.

Browse

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

Querify Question Shop: Explore Expert Solutions and Unique Q&A Merchandise

Querify Question Shop: Explore Expert Solutions and Unique Q&A Merchandise Logo Querify Question Shop: Explore Expert Solutions and Unique Q&A Merchandise Logo

Querify Question Shop: Explore Expert Solutions and Unique Q&A Merchandise Navigation

  • Home
  • About Us
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • About Us
  • Contact Us
Home/ Questions/Q 1678

Querify Question Shop: Explore Expert Solutions and Unique Q&A Merchandise Latest Questions

Author
  • 62k
Author
Asked: November 25, 20242024-11-25T10:24:09+00:00 2024-11-25T10:24:09+00:00

Keycloak Integration in Minutes with Cloud IAM and WunderGraph

  • 62k

Cloud_IAM_Blog

We are very excited to announce our most recent partnership with Cloud IAM – the Keycloak Identity and Access Management as a Service solution used by 10,000+ developers. Cloud IAM offers a fully managed Keycloak that is white-labeled, GDPR compliant, secure, cloud agnostic and scalable.

For many developers, Keycloak is the preferred software for IAM. However, integrating and using it for your application is time-consuming, since you need to monitor, secure, scale, update and back it up.

By using the integration for WunderGraph and Cloud IAM, you can build Keycloak authentication into your application with ease. Cloud IAM automates the setup, running, and scaling of Keycloak clusters. WunderGraph lets you integrate authentication with your frontend and backend in minutes. WunderGraph’s unified Virtual Graph automates 90% of integration tasks and provides an unparalleled developer experience, authentication-aware data fetching and much more out of the box.
Bring everything together and reach lightspeed levels of development! This demo was done using our quick start chat application. You can use this link to clone the repo and follow along with this demo to integrate cloud IAM in under 10 minutes.

How it works

If you want to use Keycloak for your next project with WunderGraph,
here is how you can get started. First, you need to set up your Cloud IAM.
You can start with the free Little Lemur plan.
Once you have created an account. Create a new deployment on the deployment page.

creating a new deployment

Once a new deployment has been created. You will be given admin credentials to access your deployment.
Save these credentials and then select Keycloak Console and proceed to your deployment.

Once you are inside the deployment. You should see something like this.
Head over to the Clients tab and add your WunderGraph Client.

adding a client

creating a client

When you are adding your WunderGraph Client, you need to configure your settings shown in the example below.
Change the Access Type to Confidential and give a valid redirect URI. We just used our local host as the
redirect URI.
It’s important to change the Access Type to Confidential because this will generate an OpenID Connect
Confidential client that is on the backend and not on the frontend. Make sure to click save at the bottom.

setting to public

Now if you check the Credentials tab you will see a secret. Now you can head back to Realm Settings tab
and you should see a link Endpoint at the bottom labeled Open ID Endpoint Configuration.
Click it and you will be redirected to a page with a big json blob. For now, take note of the URL. It should look like this

https://lemur-10.cloud-iam.com/auth/realms/Your-project-name/.well-known/openid-configuration 
Enter fullscreen mode Exit fullscreen mode

You’ll need everything before /.well-know. So copy it and paste it in a safe place for later use.

https://lemur-10.cloud-iam.com/auth/realms/Your-project-name/ 
Enter fullscreen mode Exit fullscreen mode

After that, you declare Cloud IAM as your login provider to authenticate users. You can do this by heading over to the wundergraph.config.ts file and adding the following:

  • Your ID is whatever you want to call it.
  • Your clientID is the name of the client you made earlier in IAM.
  • Your secret can be found under the client credentials tab. Make sure to hide it better than I did.
  • Your issuer is that link from the Open ID Endpoint Configuration link. Please paste it in the issuer.
authentication: {         cookieBased: {             providers: [                 authProviders.demo(),                 authProviders.openIdConnect({                     id: "cloud-IAM",                      clientId: "your-client-name",                      clientSecret: "your-client-secret",                      issuer: "https://lemur-10.cloud-iam.com/auth/realms/iam-integration-demo/"                 })             ],             authorizedRedirectUris: [                 "http://localhost:3000"             ]         },     }, 
Enter fullscreen mode Exit fullscreen mode

The client is then generated by WunderGraph and is aware of Cloud IAM as the authentication provider and of
Keycloak as the method used. It provides all the user information provided by Cloud IAM and lets you log in and
log out users with a single function call.

If you look inside the Web Client, you should see that WunderGraph picked up on
the changes and configured Cloud-IAM for us automatically.

WunderGraph automatically deploys

Now everything is configured, the login flow will look like this:
A user logs into the web application and is redirected to the WunderGraph Server (WunderNode).
From there, the user is redirected to Cloud IAM for authentication, and then redirected back when the login is
successfully completed. Every step of the process is automated, giving you one less thing to worry about.

If you want to learn more about how WunderGraph handles authentication, check out our detailed documentation.

Time to start your first project!

You can start using Keycloak with Cloud IAM and WunderGraph today!
We would love to see what you have built and what other integrations you would like to see.
We are looking forward to welcoming you on our Community Discord Channel soon!

If you want to take your WunderGraph application to the next level with
dedicated support from our team, use this link
to schedule a meeting with us.

Live Demo

graphqljavascriptreactwebdev
  • 0 0 Answers
  • 3 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

Sidebar

Ask A Question

Stats

  • Questions 4k
  • Answers 0
  • Best Answers 0
  • Users 2k
  • Popular
  • Answers
  • Author

    ES6 - A beginners guide - Template Literals

    • 0 Answers
  • Author

    Understanding Higher Order Functions in JavaScript.

    • 0 Answers
  • Author

    Build a custom video chat app with Daily and Vue.js

    • 0 Answers

Top Members

Samantha Carter

Samantha Carter

  • 0 Questions
  • 20 Points
Begginer
Ella Lewis

Ella Lewis

  • 0 Questions
  • 20 Points
Begginer
Isaac Anderson

Isaac Anderson

  • 0 Questions
  • 20 Points
Begginer

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help

Footer

Querify Question Shop: Explore Expert Solutions and Unique Q&A Merchandise

Querify Question Shop: Explore, ask, and connect. Join our vibrant Q&A community today!

About Us

  • About Us
  • Contact Us
  • All Users

Legal Stuff

  • Terms of Use
  • Privacy Policy
  • Cookie Policy

Help

  • Knowledge Base
  • Support

Follow

© 2022 Querify Question. All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.