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

Add user login to web map client #1673

Open
4 tasks
dadiorchen opened this issue Jul 3, 2023 · 8 comments
Open
4 tasks

Add user login to web map client #1673

dadiorchen opened this issue Jul 3, 2023 · 8 comments
Assignees

Comments

@dadiorchen
Copy link
Collaborator

dadiorchen commented Jul 3, 2023

We need to add user login & registration into our web map, we will use Keycloak to do most of the job, what we need to implement here is to jump the keycloak web page to finish the login and registration.

In detail, we need to do these:

  • Add UI of sign in and sign up button as shown here:
image

The design figma file is here

  • If the User logged in already, display the avatar like this:
image
  • If user logged in, by clicking the user avatar, we will jump to profile url provided by Keycloak.

Design file

  • To jump to Keycloak, we need to use react library like this: react-oidc-context, please contact me to get the settings for Keycloak.

Some reference, some work we have done for an experiment:
https://github.com/Greenstand/treetracker-web-map-client/blob/user-profile/src/pages/login.js
Greenstand/treetracker-admin-client#261

@dadiorchen dadiorchen added good first issue Good for newcomers cwm-dashboard Customizable Web Map Dashboard Feature: user-profile and removed cwm-dashboard Customizable Web Map Dashboard labels Jul 3, 2023
@dadiorchen dadiorchen added the challenge hard, tricky, problem label Jul 25, 2023
@MohitBansal321
Copy link

but this beta version already have the user login system

@dadiorchen
Copy link
Collaborator Author

We don't, where did you see that feature? The situation is, we did some trying on the user-profile branch, but in a hack way, now we need to do a serious integration, maybe some lib for that is a good choice, and also take: user session, token management on the client side, @MohitBansal321 are you interested to take this task?

@MohitBansal321
Copy link

We don't, where did you see that feature? The situation is, we did some trying on the user-profile branch, but in a hack way, now we need to do a serious integration, maybe some lib for that is a good choice, and also take: user session, token management on the client side, @MohitBansal321 are you interested to take this task?

https://dev-k8s.treetracker.org/web-map-site/demo
on this beta version

@dadiorchen
Copy link
Collaborator Author

That's a temporary version and experiment for this, now we want to make a serious product.

@MohitBansal321
Copy link

so we need to make a login form and register form and but i do not work with keycloak

@dadiorchen
Copy link
Collaborator Author

We don't need to build login form, keycloak will do it, we just need to interact with keycloak on the client side

@dadiorchen dadiorchen removed the challenge hard, tricky, problem label Sep 22, 2023
@dadiorchen
Copy link
Collaborator Author

This issue is open for contributors

@dadiorchen dadiorchen changed the title [user-profile] Integrate web map client with Keycloak Add user login to web map client Sep 23, 2023
@dadiorchen
Copy link
Collaborator Author

This is a implementation by admin panel team: Greenstand/treetracker-admin-client#1112 with oicd

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Status: No status
Development

No branches or pull requests

3 participants